﻿:root {
    --primary: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
    --accent-gradient: linear-gradient(135deg, #a855f7, #7c3aed);
    --bg-glass: rgba(255, 255, 255, 0.24);
    --border-glass: rgba(255, 255, 255, 0.34);
    --text-main: #1e293b;
    --text-sub: #64748b;
}

* {
    box-sizing: border-box;
    transition: all 0.25s ease;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    body::before {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
        top: 15%;
        right: 10%;
        z-index: 0;
        pointer-events: none;
    }

    body::after {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
        bottom: 10%;
        left: 10%;
        z-index: 0;
        pointer-events: none;
    }

.login-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.login-card {
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.10), 0 15px 25px -10px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    overflow: hidden;
    animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

    .login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
        pointer-events: none;
    }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.brand-section {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.brand-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.avatar-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    overflow: hidden;
}

    .avatar-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.title {
    color: var(--text-main);
    font-size: 21px;
    font-weight: 850;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 0;
}

.alert-custom {
    border: none;
    border-radius: 16px;
    font-size: 13px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background-color: #ecfdf5;
    color: #065f46;
    border-right: 4px solid #10b981;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.form-label-custom {
    display: block;
    text-align: right;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-right: 4px;
}

.input-group-custom {
    position: relative;
    margin-bottom: 18px;
    z-index: 1;
}

.form-control-custom {
    width: 100%;
    height: 52px;
    border: 1.5px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
}

    .form-control-custom:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    }

.password-box {
    position: relative;
}

.toggle-password-btn {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password-btn:hover {
        color: var(--primary);
    }

    .toggle-password-btn svg {
        width: 20px;
        height: 20px;
    }

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.captcha-input-container {
    flex: 1;
    min-width: 0;
}

.captcha-input-field {
    text-align: center;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 16px;
}

.captcha-visual-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.captcha-box {
    width: 110px;
    height: 52px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .captcha-box:hover {
        border-color: var(--primary);
    }

    .captcha-box img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.refresh-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .refresh-btn:hover {
        background: rgba(99, 102, 241, 0.15);
        transform: scale(1.05);
    }

    .refresh-btn svg {
        width: 20px;
        height: 20px;
    }

.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    background: var(--primary-gradient);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 24px -5px rgba(99, 102, 241, 0.4);
        background: linear-gradient(135deg, #5356e6, #4338ca);
    }

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
    font-weight: 600;
}

    .remember-me input[type="checkbox"] {
        width: 17px;
        height: 17px;
        accent-color: var(--primary);
        cursor: pointer;
    }

.recover-btn {
    text-decoration: none;
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
}

    .recover-btn:hover {
        background: rgba(99, 102, 241, 0.15);
    }

.verification-text {
    color: #334155;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 22px;
    background: rgba(99, 102, 241, 0.05);
    padding: 12px 14px;
    border-radius: 16px;
    border: 1.5px dashed rgba(99, 102, 241, 0.2);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.otp-form-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    direction: ltr;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.otp-inputbar {
    width: 54px !important;
    height: 54px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
}

    .otp-inputbar:focus {
        border-color: var(--primary) !important;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12) !important;
        outline: none !important;
    }

.rotate-effect {
    transform: rotate(360deg);
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-card {
        border-radius: 24px;
    }

    .brand-logo {
        max-width: 130px;
    }

    .avatar-container {
        width: 70px;
        height: 70px;
    }

    .title {
        font-size: 19px;
    }

    .captcha-box {
        width: 95px;
    }

    .bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .recover-btn {
        text-align: center;
    }
}
