/* ========================================
   TRUE ACCESS - LOGIN PAGE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #F2F6FA 0%, #E8F0F8 100%);
    color: #2B3A4A;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(154, 198, 243, 0.3);
    animation: fadeInDown 0.6s ease;
}

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

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #2B3A4A;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #5A6C7D;
}

.login-form {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(43, 58, 74, 0.12);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2B3A4A;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #E0E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #2B3A4A;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #8A9AAB;
}

.form-input:focus {
    outline: none;
    border-color: #9AC6F3;
    box-shadow: 0 0 0 4px rgba(154, 198, 243, 0.1);
}

.form-input.error {
    border-color: #F9B6B6;
}

.form-input.success {
    border-color: #A3D9B1;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.toggle-password:hover {
    background: #F2F6FA;
}

.error-message {
    display: block;
    font-size: 13px;
    color: #F9B6B6;
    margin-top: 6px;
    min-height: 18px;
    font-weight: 500;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 24px;
}

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

.remember-me input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #9AC6F3;
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: #2B3A4A;
}

.forgot-password {
    font-size: 14px;
    color: #9AC6F3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #7AB5E8;
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
    color: #2B3A4A;
    box-shadow: 0 4px 16px rgba(154, 198, 243, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(154, 198, 243, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(43, 58, 74, 0.3);
    border-top-color: #2B3A4A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #E0E8F0;
}

.divider-text {
    font-size: 14px;
    color: #8A9AAB;
}

.btn-social {
    width: 100%;
    padding: 12px 24px;
    border: 2px solid #E0E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    color: #2B3A4A;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.btn-social:hover {
    border-color: #9AC6F3;
    background: #F9FCFF;
    transform: translateY(-1px);
}

.social-icon {
    font-size: 20px;
}

.footer-link {
    text-align: center;
    font-size: 14px;
    color: #5A6C7D;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.footer-link a {
    color: #9AC6F3;
    text-decoration: none;
    font-weight: 600;
}

.footer-link a:hover {
    text-decoration: underline;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(43, 58, 74, 0.08);
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-2px);
    box-shadow: 0 6px 20px rgba(43, 58, 74, 0.12);
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

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

.alert.show {
    display: flex;
}

.alert-error {
    background: #FFF5F5;
    color: #D9534F;
    border: 1px solid #FFE5E5;
}

.alert-success {
    background: #F5FDF8;
    color: #2E7D32;
    border: 1px solid #E8F5E9;
}

@media (max-width: 480px) {
    .login-form {
        padding: 24px 20px;
    }

    .welcome-title {
        font-size: 24px;
    }
}