* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

:root {
    --primary-green: #4a7053;
    --primary-dark: #3a5a42;
    --primary-light: #5d8a67;
    --accent-blue: #4a7ba7;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.24);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Disable text selection and copying */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===================================== */
/* REMOVE AUTOFILL BLUE HIGHLIGHTING */
/* ===================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    box-shadow: 0 0 0 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Remove autofill blue background for all input states */
input:-internal-autofill-selected {
    background-color: white !important;
    background-image: none !important;
    color: #1a1a1a !important;
}

/* Additional fix for Firefox */
input:-moz-autofill,
input:-moz-autofill-preview {
    background-color: white !important;
    color: #1a1a1a !important;
}

.login-container {
    background: var(--bg-white);
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

/* ===================================== */
/* LEFT PANEL - HERO SECTION */
/* ===================================== */
.login-left {
    background: linear-gradient(135deg, 
        rgba(74, 112, 83, 0.95) 0%, 
        rgba(58, 90, 66, 0.92) 50%,
        rgba(74, 123, 167, 0.88) 100%),
        url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 48px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.feature-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 48px;
}

.feature-card {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out calc(0.4s + var(--delay)) backwards;
}

.feature-card:nth-child(1) { --delay: 0s; }
.feature-card:nth-child(2) { --delay: 0.1s; }
.feature-card:nth-child(3) { --delay: 0.2s; }

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.testimonial p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.6;
}

.testimonial span {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 600;
}

/* ===================================== */
/* RIGHT PANEL - LOGIN FORM */
/* ===================================== */
.login-right {
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 460px;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* LARGE UNIVERSITY LOGO */
.university-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoEntrance 1s ease-out;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.university-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

.university-logo img:hover {
    transform: scale(1.02);
}

#logoText {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: -0.02em;
}

/* LOGIN HEADER */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* FORM STYLES */
.login-form {
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.input-group label svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    padding-right: 48px !important; /* Make room for the eye icon */
}

.input-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
    background: var(--bg-white);
    font-family: inherit;
    /* Re-enable selection in input fields */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.input-group input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.input-group input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(74, 112, 83, 0.1);
    background: var(--bg-white);
}

.input-group input:hover:not(:focus) {
    border-color: #c0c0c0;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    padding: 4px;
    z-index: 10;
    pointer-events: auto;
    user-select: none;
}

.password-toggle:hover {
    color: var(--primary-green);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* FORM OPTIONS */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.remember-me span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.forgot-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* LOGIN BUTTON */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(74, 112, 83, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 112, 83, 0.35);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 112, 83, 0.25);
}

.login-btn svg {
    transition: transform 0.3s ease;
}

.login-btn:hover svg {
    transform: translateX(4px);
}

/* DIVIDER */
.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    display: inline-block;
    background: var(--bg-white);
    padding: 0 16px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* GOOGLE SIGN-IN */
#googleSignIn {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}

#g_id_onload {
    margin-bottom: 16px;
}

.g_id_signin {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.g_id_signin > div {
    width: 100% !important;
}

.g_id_signin iframe {
    width: 100% !important;
}

.google-signin-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.google-signin-wrapper > div {
    width: 100% !important;
}

.google-signin-wrapper iframe {
    width: 100% !important;
}

/* Fallback button style */
.google-btn {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #333;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-bottom: 24px;
}

.google-btn:hover {
    border-color: var(--primary-green);
    background: #f8faf9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* SIGNUP PROMPT */
.signup-prompt {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.signup-prompt p {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.signup-prompt a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.signup-prompt a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* MESSAGES */
.error-message,
.success-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ===================================== */
/* MODAL STYLES */
/* ===================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    padding: 48px;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalEntrance 0.4s ease-out;
    z-index: 1001;
}

@keyframes modalEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(74, 112, 83, 0.1), rgba(74, 123, 167, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--primary-green);
}

.modal-content h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal-content > p {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
    font-size: 15px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    /* Re-enable selection in input fields */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.modal-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(74, 112, 83, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(74, 112, 83, 0.25);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 112, 83, 0.35);
}

.modal-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.modal-btn-secondary:hover {
    background: var(--border-color);
}

.modal-btn:active {
    transform: translateY(0);
}

/* ===================================== */
/* RESPONSIVE DESIGN */
/* ===================================== */
@media (max-width: 1200px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .university-logo {
        max-width: 320px;
        margin-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .login-right {
        padding: 30px 20px;
    }
    
    .form-wrapper {
        max-width: 100%;
    }
    
    .university-logo {
        max-width: 260px;
        margin-bottom: 32px;
    }
    
    .login-header h2 {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===================================== */
/* LOADING STATE */
/* ===================================== */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading span {
    opacity: 0;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CUSTOM GOOGLE BUTTON */
.custom-google-btn {
    width: 100%;
    padding: 15px 24px;
    background: white;
    color: #333;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.custom-google-btn:hover {
    border-color: #4a7053;
    background: #f0f7f4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-google-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#googleSignIn {
    width: 100%;
}
/* ===================================== */
/* ENHANCED MOBILE IMPROVEMENTS */
/* ===================================== */

/* Ensure tap targets are at least 44px */
@media (max-width: 768px) {
    .login-btn,
    .google-btn,
    .custom-google-btn,
    .modal-btn {
        min-height: 48px;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    .input-group input,
    .modal-input {
        font-size: 16px; /* Prevent iOS zoom on focus */
        min-height: 48px;
        padding: 14px 18px;
    }

    .forgot-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Better touch spacing */
    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .remember-me input[type="checkbox"] {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    /* Reduce hero padding */
    .login-left {
        padding: 40px 24px;
    }

    /* Make password toggle bigger for touch */
    .password-toggle {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 24px 16px;
        align-items: flex-start;
    }

    .form-wrapper {
        width: 100%;
    }

    .university-logo {
        max-width: 220px;
        margin-bottom: 28px;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-header p {
        font-size: 14px;
    }

    /* Modal full screen on tiny phones */
    .modal-content {
        padding: 24px 20px;
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }

    /* Input groups */
    .input-group {
        margin-bottom: 20px;
    }

    /* Sign up prompt */
    .signup-prompt {
        padding-top: 20px;
    }
}




input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}



img {
    -webkit-user-drag: none;
    pointer-events: none;
}

a img, button img {
    pointer-events: auto;
}
/* ===== CUSTOM FULL-WIDTH GOOGLE BUTTON ===== */
.google-btn-container {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    min-height: 44px;
}

/* Custom styled button — sits behind, decorative only */
.custom-google-btn-full {
    width: 100%;
    padding: 12px 24px;
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    letter-spacing: 0.25px;
    min-height: 44px;
    position: relative;
    z-index: 1;
    pointer-events: none;
    cursor: pointer;
}

/* Invisible Google iframe — sits on top, scaled to full width, receives clicks */
.google-signin-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0.01;
    overflow: hidden;
}

.google-signin-hidden iframe {
    display: block;
    cursor: pointer !important;
}