/* â•â•â•â•â•â• Login Page â€” Aroma Beauty Shop â•â•â•â•â•â• */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: IRANSansX, sans-serif;
    background: linear-gradient(145deg, #fdf8ef 0%, #f5eada 30%, #eedfc8 60%, #fdf8ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* â”€â”€ Floating Beauty Background Icons â”€â”€ */
.login-bg-icons {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.login-bg-icon {
    position: absolute;
    color: rgba(196,169,123,0.2);
    fill: none;
    stroke: rgba(196,169,123,0.2);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 48px;
    height: 48px;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

    .login-bg-icon:nth-child(1)  { top: 4%;  left: 8%;   width: 72px; height: 72px; animation: bgFloat1 6s   infinite alternate; }
    .login-bg-icon:nth-child(2)  { top: 6%;  right: 10%; width: 66px; height: 66px; animation: bgFloat2 7s   infinite alternate; }
    .login-bg-icon:nth-child(3)  { top: 3%;  left: 42%;  width: 60px; height: 60px; animation: bgFloat3 8s   infinite alternate; }
    .login-bg-icon:nth-child(4)  { top: 15%; left: 35%;  width: 58px; height: 58px; animation: bgFloat4 5.5s infinite alternate; }
    .login-bg-icon:nth-child(5)  { top: 12%; right: 35%; width: 64px; height: 64px; animation: bgFloat1 7.5s infinite alternate; }
    .login-bg-icon:nth-child(6)  { top: 30%; left: 18%;  width: 62px; height: 62px; animation: bgFloat2 6.5s infinite alternate; }
    .login-bg-icon:nth-child(7)  { top: 28%; right: 18%; width: 56px; height: 56px; animation: bgFloat3 5s   infinite alternate; }
    .login-bg-icon:nth-child(8)  { top: 45%; left: 20%;  width: 58px; height: 58px; animation: bgFloat4 8s   infinite alternate; }
    .login-bg-icon:nth-child(9)  { top: 42%; right: 20%; width: 64px; height: 64px; animation: bgFloat1 6s   infinite alternate; }
    .login-bg-icon:nth-child(10) { top: 55%; left: 15%;  width: 60px; height: 60px; animation: bgFloat2 7s   infinite alternate; }
    .login-bg-icon:nth-child(11) { top: 58%; right: 15%; width: 56px; height: 56px; animation: bgFloat3 5.5s infinite alternate; }
    .login-bg-icon:nth-child(12) { top: 70%; left: 22%;  width: 62px; height: 62px; animation: bgFloat4 6.5s infinite alternate; }
    .login-bg-icon:nth-child(13) { top: 68%; right: 22%; width: 58px; height: 58px; animation: bgFloat2 6s   infinite alternate; }
    .login-bg-icon:nth-child(14) { top: 80%; left: 35%;  width: 64px; height: 64px; animation: bgFloat3 7.5s infinite alternate; }
    .login-bg-icon:nth-child(15) { top: 82%; right: 35%; width: 60px; height: 60px; animation: bgFloat4 5s   infinite alternate; }
    .login-bg-icon:nth-child(16) { top: 90%; left: 45%;  width: 62px; height: 62px; animation: bgFloat1 8s   infinite alternate; }
    .login-bg-icon:nth-child(17) { top: 92%; left: 8%;   width: 66px; height: 66px; animation: bgFloat3 6.5s infinite alternate; }
    .login-bg-icon:nth-child(18) { top: 88%; right: 8%;  width: 54px; height: 54px; animation: bgFloat4 7s   infinite alternate; }
    .login-bg-icon:nth-child(19) { top: 35%; left: 38%;  width: 52px; height: 52px; animation: bgFloat2 5.5s infinite alternate; }
    .login-bg-icon:nth-child(20) { top: 62%; right: 38%; width: 54px; height: 54px; animation: bgFloat1 6.5s infinite alternate; }

@keyframes bgFloat1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(12px, -18px) rotate(15deg);
    }
}

@keyframes bgFloat2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-15px, 12px) rotate(-12deg);
    }
}

@keyframes bgFloat3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(10px, 15px) rotate(10deg);
    }
}

@keyframes bgFloat4 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-10px, -12px) rotate(-8deg);
    }
}

/* â”€â”€ Main Card â”€â”€ */
.login-card {
    max-width: 420px;
    width: 90%;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(139,107,10,0.12), 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
}

/* â”€â”€ Top Brand Strip â”€â”€ */
.login-brand {
    padding: 32px 32px 36px;
    text-align: center;
    background: linear-gradient(135deg, #917d41 0%, #C4A97B 60%, #E8D5A3 100%);
    position: relative;
}

    .login-brand::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 20px;
        background: #fff;
        border-radius: 24px 24px 0 0;
    }

.login-brand-logo {
    height: 52px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-brand-title {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.6;
}

.login-brand-desc {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* â”€â”€ Form Panel â”€â”€ */
.login-form-panel {
    padding: 28px 32px 32px;
    position: relative;
}

.login-form-inner {
    width: 100%;
}

/* â”€â”€ Alert â”€â”€ */
#ejs-login-alert .alert {
    border-radius: 12px;
    font-size: 13px;
    border: none;
    padding: 10px 14px;
}

/* â”€â”€ Inputs â”€â”€ */
#ejs-login-content input.form-control {
    background: #fdf8f2;
    border: 1.5px solid #e8d8be;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #5C4400;
    transition: all 0.25s ease;
    direction: ltr;
    text-align: left;
}

    #ejs-login-content input.form-control:focus {
        border-color: #C4A97B;
        box-shadow: 0 0 0 3px rgba(196,169,123,0.15);
        background: #fff;
        outline: none;
    }

input::placeholder {
    text-align: right;
    color: #B09878;
}

/* â”€â”€ Identifier â”€â”€ */
.identifier-display {
    margin-bottom: 12px;
}

.identifier-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9C8060;
    margin-bottom: 6px;
}

.identifier-display-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f0e8;
    border: 1.5px solid #e8d8be;
    border-radius: 12px;
    padding: 11px 14px;
    cursor: not-allowed;
}

.identifier-value {
    font-size: 14px;
    font-weight: 500;
    color: #B09878;
    direction: ltr;
    text-align: left;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.identifier-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #C4A97B;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}

    .identifier-edit-btn:hover {
        color: #8B6B0A;
    }

    .identifier-edit-btn i {
        font-size: 15px;
    }

/* â”€â”€ Primary Button â”€â”€ */
.btn-login-primary {
    background: linear-gradient(135deg, #c5ac62, #C4A97B);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(196,169,123,0.4);
    cursor: pointer;
}

    .btn-login-primary:hover {
        background: linear-gradient(135deg, #6B5000, #A08530);
        box-shadow: 0 6px 24px rgba(196,169,123,0.5);
        transform: translateY(-1px);
        color: #fff;
    }

    .btn-login-primary:active {
        transform: translateY(0);
    }

/* â”€â”€ Password â”€â”€ */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #B09878;
    transition: color 0.2s;
}

    .password-toggle:hover {
        color: #C4A97B;
    }

/* â”€â”€ Links â”€â”€ */
.login-link {
    color: #C4A97B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

    .login-link:hover {
        color: #8B6B0A;
    }

.login-register-row {
    text-align: center;
}

    .login-register-row small {
        color: #B09878;
        font-size: 13px;
    }

/* â”€â”€ Footer â”€â”€ */
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f0e8de;
}

.login-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #B09878;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

    .login-back-btn:hover {
        color: #C4A97B;
    }

    .login-back-btn i {
        font-size: 16px;
    }

/* â”€â”€ Loading â”€â”€ */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 24px;
}

/* â”€â”€ Strength â”€â”€ */
.password-strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
    width: 0;
}

    .password-strength-fill.strength-weak {
        background-color: #dc3545;
    }

    .password-strength-fill.strength-medium {
        background-color: #ffc107;
    }

    .password-strength-fill.strength-strong {
        background-color: #28a745;
    }

    .password-strength-fill.strength-very-strong {
        background-color: #198754;
    }

.password-strength-text {
    color: #9C8060;
    font-size: 12px;
}

input.is-invalid {
    border-color: #dc3545 !important;
}

.field-error {
    font-size: 12px;
    color: #dc3545;
}

#ejs-login-forgot {
    color: #C4A97B;
}

    #ejs-login-forgot:hover {
        color: #8B6B0A;
    }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 480px) {
    .login-card {
        width: 95%;
        border-radius: 20px;
    }

    .login-brand {
        padding: 26px 24px 32px;
    }

    .login-brand-logo {
        height: 42px;
    }

    .login-brand-title {
        font-size: 16px;
    }

    .login-form-panel {
        padding: 16px 22px 26px;
    }

    .login-bg-icon {
        opacity: 0.6;
    }
}
