/* =========================================
   REGISTER PAGE STYLES
   ========================================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-brand-logo {
    margin-bottom: 30px;
    font-size: 40px;
    color: white;
}

.login-brand-logo img {
    height: 50px;
}

.login-card {
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-top-banner {
    background-color: #0f172a;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-text {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.4;
    display: flex;
    gap: 6px;
}

.banner-text i {
    color: var(--btn-lime);
    margin-top: 2px;
}

.banner-logos {
    display: flex;
    gap: 12px;
}

.banner-logos img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.card-body {
    padding: 40px 30px;
}

.card-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-body .sub-text {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 30px;
}

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

.form-group input {
    width: 100%;
    background-color: #334155;
    border: 1px solid transparent;
    padding: 14px 16px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: var(--btn-lime);
    background-color: #1e293b;
}

/* --- BUTTON FIX --- */
.btn-full {
    width: 100%;
    margin-bottom: 16px !important;
    border-radius: 8px;
    font-size: 14px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-full:last-child {
    margin-bottom: 0 !important;
}

/* --- UPDATED GOOGLE BUTTON --- */
.btn-google {
    background-color: #ffffff;
    /* Nền trắng */
    color: #1f2937;
    /* Chữ tối */
    border: none;
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
    /* Bỏ gạch chân */
}

.btn-google:hover {
    background-color: #f1f5f9;
    color: #000;
}

/* Icon SVG */
.google-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    pointer-events: none;
}

/* Divider Text */
.divider-text {
    text-align: center;
    margin: 15px 0;
    color: #94a3b8;
    font-size: 13px;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #334155;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}


/* Footer Actions */
.login-footer-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-gray);
}

.link-create {
    color: var(--text-gray);
    font-weight: 600;
    transition: 0.2s;
}

.link-create:hover {
    color: white !important;
    text-decoration: underline;
}

.login-copy {
    margin-top: 40px;
    font-size: 12px;
    color: #64748b;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .login-wrapper {
        justify-content: flex-start;
        padding-top: 40px;
    }

    .login-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .card-top-banner {
        background-color: rgba(15, 23, 42, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px !important;
        margin-bottom: 50px;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 25px;
    }

    .banner-text {
        text-align: center;
        font-size: 13px;
        justify-content: center;
        width: 100%;
    }

    .banner-logos {
        width: 100%;
        justify-content: center;
    }

    .card-body {
        padding: 0;
    }

    .mobile-title {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 15px;
        text-align: center;
    }

    .mobile-sub-text {
        text-align: center;
        color: var(--text-gray);
        font-size: 15px;
        margin-bottom: 50px;
    }

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

    .form-group input {
        background-color: rgba(30, 41, 59, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 18px;
        font-size: 16px;
    }

    .btn-full {
        padding: 16px;
        font-size: 16px;
    }

    .login-footer-actions {
        font-size: 16px;
        margin-top: 40px;
    }
}

/* =========================================
   TOAST NOTIFICATION STYLES
   ========================================= */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    position: relative;
    width: 350px;
    background: #0f172a;
    border-radius: 6px;
    padding: 16px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    animation: slideInRight 0.3s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.success .toast-icon {
    color: #22c55e;
}

.toast-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.toast-msg {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    color: #fff;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: transparent;
}

.toast.error .toast-progress {
    background-color: #ef4444;
}

.toast.success .toast-progress {
    background-color: #22c55e;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}