﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    margin: 0 auto 40px;
}

/* Brand Header */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-icon {
    background: linear-gradient(135deg, #0f2b3d, #1a4b6e);
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

    .brand-icon i {
        font-size: 32px;
        color: #e3b23c;
    }

.brand-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2c3c;
    letter-spacing: -0.5px;
}

.brand-header p {
    color: #5b6f82;
    font-size: 0.9rem;
    margin-top: 6px;
}

/* Card Style */
.auth-card {
    background: white;
    border-radius: 32px;
    padding: 36px 32px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.5);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e2f3e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-subtitle {
    color: #6c7e91;
    font-size: 0.85rem;
    margin-bottom: 28px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 16px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

    .form-group label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #4a627a;
        margin-bottom: 8px;
    }

.label-required {
    color: #c0392b;
    margin-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper i {
        position: absolute;
        left: 16px;
        color: #8ba0b2;
        font-size: 1rem;
        z-index: 1;
    }

    .input-wrapper input {
        width: 100%;
        padding: 14px 16px 14px 44px;
        border: 1.5px solid #e2e9f2;
        border-radius: 16px;
        font-size: 0.95rem;
        font-family: 'Inter', sans-serif;
        transition: all 0.2s;
        background: #fefefe;
    }

        .input-wrapper input:focus {
            outline: none;
            border-color: #1f6392;
            box-shadow: 0 0 0 3px rgba(31,99,146,0.1);
        }

        .input-wrapper input.error {
            border-color: #dc5c4a;
            background-color: #fff8f7;
        }

.error-message {
    font-size: 0.7rem;
    color: #dc5c4a;
    margin-top: 6px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: #1f6392;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

    .btn-primary:hover {
        background: #0f4b70;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(31,99,146,0.2);
    }

.btn-secondary {
    width: 100%;
    background: transparent;
    border: 1.5px solid #d0dce8;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        background: #f5f8fc;
        border-color: #a5bbd0;
    }

/* Links */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.8rem;
}

    .auth-links a {
        color: #1f6392;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .auth-links a:hover {
            text-decoration: underline;
            color: #0e4160;
        }

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0 16px;
    position: relative;
}

    .divider::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e2e8f0;
    }

    .divider span {
        background: white;
        padding: 0 16px;
        position: relative;
        font-size: 0.75rem;
        color: #8ba0b2;
    }

/* Back link */
.back-link {
    text-align: center;
    margin-top: 24px;
}

    .back-link a {
        color: #4a627a;
        text-decoration: none;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .back-link a:hover {
            color: #1f6392;
        }

/* Toast Notification */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e3b4f;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Password strength indicator */
.password-strength {
    margin-top: 6px;
    font-size: 0.7rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 520px) {
    .auth-card {
        padding: 28px 20px;
    }

    .brand-header h1 {
        font-size: 1.5rem;
    }
}
