@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

.container {
    display: flex;
    height: 100vh;
    min-height: 100vh;
}

/* LEFT SIDE */
.left {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tabs {
    text-align: left;
}

.tabs a {
    margin-right: 20px;
    text-decoration: none;
    color: #0B37A6; /* exact blue */
    font-weight: bold;
    padding-bottom: 5px;
}

.tabs .active {
    border-bottom: 3px solid #FF7A00; /* exact orange */
}

.btn-back-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0B37A6;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-back-mobile:hover {
    background-color: rgba(11, 55, 166, 0.1);
}

.left-content {
    max-width: 400px;
}

.left-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* HEADLINE COLORS (3 COLORS EXACT) */
.left-content .blue {
    color: #0B37A6;
}

.left-content .orange {
    color: #FF7A00;
}

.left-content .red {
    color: #FF0000;
}

.left-content p {
    font-size: 14px;
    color: #333;
}

/* RIGHT SIDE */
.right {
    width: 50%;
    background-color: #0B37A6; /* exact blue */
    color: white;
    position: relative;
    min-height: 100vh;
}

.right-box {
    position: absolute;
    top: 30%;
    left: 15%;
    width: 70%;
}

.right-box h1 {
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 45px 12px 45px;
    margin-bottom: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select-wrapper .select-icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.select-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all 0.3s ease;
}

select:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

button {
    padding: 12px 28px;
    border: none;
    background-color: white;
    color: #0B37A6;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.help {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 12px;
    text-align: right;
}

.help a {
    color: white;
    text-decoration: underline;
}


.logo-wrapper {
    margin-top: 0;
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/*stud login*/

.label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin: 10px 0 5px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.forgot {
    font-size: 12px;
    text-align: right;
    margin-bottom: 15px;
}

.forgot a {
    color: #fff;
    font-weight: bold;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

.btn-back {
    background: white;
    color: #0B37A6;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-back:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-login {
    background: linear-gradient(135deg, #1f8f2f, #28a745);
    color: white;
    padding: 10px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(31, 143, 47, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #28a745, #34c759);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 143, 47, 0.4);
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .left {
        width: 100%;
        min-height: auto;
        padding: 20px;
        order: 1;
    }

    .right {
        width: 100%;
        min-height: auto;
        padding: 40px 20px 60px;
        order: 2;
    }

    .right-box {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .logo-wrapper {
        margin-top: 20px;
        text-align: center;
    }

    .logo-img {
        width: 280px;
        margin: 0 auto;
    }

    .left-content {
        max-width: 100%;
        text-align: center;
        margin: 20px auto;
    }

    .left-content h2 {
        font-size: 20px;
    }

    #tabs-desktop {
        display: none;
    }

    .btn-back-mobile {
        display: flex;
    }

    .tabs {
        text-align: center;
    }

    .help {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-top: 30px;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-back,
    .btn-login {
        width: 100%;
        text-align: center;
    }
}

/* Mobile (480px and below) - Compact Layout */
@media screen and (max-width: 480px) {
    .container {
        flex-direction: column;
        min-height: 100vh;
    }

    /* Hide left side content but show tabs */
    .left {
        display: block;
        width: 100%;
        min-height: auto;
        padding: 15px 20px;
        background: white;
    }

    .left .logo-wrapper,
    .left .left-content {
        display: none;
    }

    #tabs-desktop {
        display: none;
    }

    .btn-back-mobile {
        display: flex;
    }

    .tabs {
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-bottom: 20px;
    }

    .tabs a {
        font-size: 13px;
        margin-right: 0;
        display: none;
    }

    .tabs a:first-child {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #0B37A6;
        font-weight: 600;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background-color: #f0f0f0;
        transition: all 0.3s ease;
    }

    .tabs a:first-child:hover {
        background-color: #e0e0e0;
    }

    .tabs a:first-child::before {
        content: '🏠';
        font-size: 20px;
    }

    /* Full screen white background on mobile */
    .right {
        width: 100%;
        min-height: auto;
        flex: 1;
        padding: 20px 20px 40px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: white;
        color: #333;
    }

    .right-box {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Logo on mobile */
    .right::before {
        content: '';
        display: block;
        width: 180px;
        height: 180px;
        background-image: url('/images/gvote.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-bottom: 20px;
    }

    .right-box h1 {
        font-size: 22px;
        text-align: center;
        color: #0B37A6;
    }

    .subtitle {
        font-size: 13px;
        text-align: center;
        color: #666 !important;
    }

    .info-note {
        color: #666 !important;
    }

    .label {
        font-size: 12px;
        color: #333 !important;
    }

    input,
    select,
    .select-wrapper select {
        padding: 12px 14px;
        font-size: 14px;
        border: 1px solid #ddd !important;
        background: #f9f9f9 !important;
        color: #333 !important;
    }

    input::placeholder {
        color: #999 !important;
    }

    .select-wrapper select {
        padding: 12px 40px;
        background: white !important;
        border: 2px solid #ddd !important;
    }

    .select-wrapper .select-icon,
    .select-wrapper .select-icon-left {
        color: #666 !important;
    }

    /* Hide the left icon on mobile for cleaner look */
    .select-wrapper .select-icon-left {
        display: none;
    }

    .select-wrapper select {
        padding: 12px 40px 12px 14px;
    }

    button,
    .btn-back,
    .btn-login {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .btn-back {
        background: #f0f0f0 !important;
        color: #333 !important;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .forgot {
        font-size: 11px;
        text-align: center;
        color: #666 !important;
    }

    .forgot a {
        color: #0B37A6 !important;
    }

    .help {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin-top: 30px;
        font-size: 11px;
        color: #666 !important;
    }

    .help a {
        color: #0B37A6 !important;
    }

    /* Alert boxes for mobile */
    .alert-error,
    .alert-info {
        color: inherit !important;
    }

    .error-text {
        color: #c33 !important;
    }

    /* Password toggle icon */
    .toggle-password {
        color: #666 !important;
    }
}
