:root {
    --brand-primary: #08B14B;
    --brand-secondary: #119C8F;
    --text-dark: #0F172A;
    --text-soft: #64748B;
    --border-soft: #E5E7EB;
    --surface: #FFFFFF;
}

body {
    font-family: Cairo, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(8,177,75,.12), transparent 22%),
        linear-gradient(135deg, #F7FAFC 0%, #EEF6F3 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

.auth-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-topbar {
    padding: 18px 0;
}

.auth-topbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
}

.auth-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    box-shadow: 0 12px 24px rgba(8,177,75,.18);
}

.auth-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #F1F5F9;
    border: 1px solid transparent;
    color: #334155;
    font-weight: 700;
    text-decoration: none;
    transition: .25s;
}

.lang-btn:hover {
    color: var(--brand-primary);
}

.lang-btn.active {
    background: rgba(8,177,75,.12);
    color: #08B14B;
    border-color: rgba(8,177,75,.25);
}

.flag-emoji {
    font-size: 16px;
    line-height: 1;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 0 28px;
}

.auth-shell {
    min-height: calc(100vh - 120px);
}

.auth-panel {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(229,231,235,.95);
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(15,23,42,.12);
    overflow: hidden;
    animation: fadeUp .6s ease;
}

.auth-cover {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #0B0F14;
}

.auth-cover-bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/auth-cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.auth-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.8) 100%);
    z-index: 1;
}

.auth-side {
    position: relative;
    z-index: 2;
    color: #fff;
    min-height: 100%;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.auth-side h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 18px;
    color: #fff;
}

.auth-side p {
    color: rgba(255,255,255,.86);
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 24px;
    max-width: 520px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: rgba(255,255,255,.92);
    font-weight: 700;
}

.auth-feature i {
    color: #4ADE80;
    font-size: 18px;
}

.auth-form-side {
    background: rgba(255,255,255,.98);
}

.form-control {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid #E5E7EB;
    background: #F9FBFB;
    font-weight: 600;
    padding: 0 16px;
    transition: .25s ease;
}

.form-control:focus {
    background: #fff;
    border-color: #08B14B;
    box-shadow: 0 0 0 4px rgba(8,177,75,.12);
}

.btn-brand {
    min-height: 54px;
    border-radius: 18px;
    border: 0;
    background: linear-gradient(135deg, #08B14B, #119C8F);
    color: #fff;
    font-weight: 800;
    letter-spacing: .3px;
    transition: .3s ease;
}

.btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(8,177,75,.25);
}

.auth-link {
    font-weight: 800;
    text-decoration: none;
}

.auth-form-note {
    font-size: 13px;
    color: #94A3B8;
}

.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s ease;
}

.password-toggle:hover {
    background: rgba(8,177,75,.08);
    color: #08B14B;
}

.password-wrap .form-control {
    padding-right: 56px;
}

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

@media (max-width: 991px) {
    .auth-cover {
        min-height: 340px;
    }

    .auth-side {
        padding: 30px 24px;
    }

    .auth-side h2 {
        font-size: 32px;
    }

    .auth-side p {
        font-size: 16px;
    }

    .auth-main {
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .auth-topbar-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .lang-btn {
        padding: 9px 12px;
    }
}
.auth-locale-switcher{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:8px;
    background:rgba(255,255,255,.72);
    border:1px solid rgba(229,231,235,.95);
    border-radius:22px;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
    backdrop-filter:blur(10px);
}

.locale-pill{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:16px;
    text-decoration:none;
    color:#334155;
    font-weight:800;
    transition:.25s ease;
    border:1px solid transparent;
    background:transparent;
}

.locale-pill:hover{
    background:#fff;
    color:#08B14B;
    transform:translateY(-1px);
}

.locale-pill.active{
    background:linear-gradient(135deg, rgba(8,177,75,.12), rgba(17,156,143,.10));
    border-color:rgba(8,177,75,.22);
    color:#08B14B;
    box-shadow:0 8px 18px rgba(8,177,75,.10);
}

.locale-flag{
    font-size:18px;
    line-height:1;
}

.locale-code{
    font-size:12px;
    font-weight:900;
    letter-spacing:.6px;
    opacity:.8;
}

.locale-name{
    font-size:15px;
    font-weight:800;
}

@media (max-width: 767px){
    .auth-locale-switcher{
        width:100%;
        justify-content:flex-start;
        overflow-x:auto;
    }

    .locale-pill{
        flex:0 0 auto;
    }

    .locale-name{
        font-size:14px;
    }
}
.auth-language-dropdown {
    position: relative;
}

.language-dropdown-btn {
    min-height: 54px;
    padding: 10px 16px;
    border-radius: 18px;
    border: 1px solid rgba(229,231,235,.95);
    background: rgba(255,255,255,.85);
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: #0F172A;
    transition: .25s ease;
}

.language-dropdown-btn:hover {
    background: #fff;
    border-color: rgba(8,177,75,.25);
    color: #08B14B;
}

.language-dropdown-btn::after {
    display: none;
}

.language-current-flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15,23,42,.12);
}

.language-current-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-current-text {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.language-menu {
    min-width: 280px;
    padding: 10px;
    border: 1px solid rgba(229,231,235,.95);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(15,23,42,.10);
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(12px);
    margin-top: 10px;
}

.language-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    text-decoration: none;
    color: #0F172A;
    border: 1px solid transparent;
    transition: .25s ease;
    margin-bottom: 8px;
    background: #fff;
}

.language-card:last-child {
    margin-bottom: 0;
}

.language-card:hover {
    background: #F8FAFC;
    border-color: rgba(8,177,75,.18);
    transform: translateY(-1px);
}

.language-card.active {
    background: linear-gradient(135deg, rgba(8,177,75,.10), rgba(17,156,143,.08));
    border-color: rgba(8,177,75,.22);
}

.language-card-flag {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(15,23,42,.08);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-card-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-card-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.language-card-content strong {
    font-size: 15px;
    font-weight: 900;
    color: #0F172A;
}

.language-card-content small {
    font-size: 12px;
    color: #64748B;
    font-weight: 700;
}

.language-check {
    margin-left: auto;
    color: #08B14B;
    font-size: 18px;
}

@media (max-width: 767px) {
    .language-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    .language-menu {
        min-width: 100%;
    }
}
.auth-link.small {
    font-size: 13px;
    color: #08B14B;
    font-weight: 700;
    text-decoration: none;
}

.auth-link.small:hover {
    text-decoration: underline;
    color: #119C8F;
}
.auth-panel {
    animation: authFadeUp .7s cubic-bezier(.22,1,.36,1);
}
.form-control {
    transition: all .25s ease;
}
.btn-brand {
    position: relative;
    overflow: hidden;
}

.btn-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.3), transparent);
    opacity: 0;
    transition: .4s;
}
.password-toggle i {
    transition: .3s ease;
}

.password-toggle:hover i {
    transform: scale(1.2);
}
.btn-brand:hover::before {
    opacity: 1;
    transform: translateX(100%);
}
.form-control:focus {
    transform: translateY(-2px);
}

.form-control:not(:placeholder-shown) {
    background: #fff;
    border-color: rgba(8,177,75,.35);
}
.auth-cover-bg {
    animation: slowZoom 12s ease-in-out infinite alternate;
}
.auth-side > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeItem .6s ease forwards;
}

.auth-side > *:nth-child(1){animation-delay:.1s}
.auth-side > *:nth-child(2){animation-delay:.2s}
.auth-side > *:nth-child(3){animation-delay:.3s}
.auth-side > *:nth-child(4){animation-delay:.4s}
.auth-side > *:nth-child(5){animation-delay:.5s}
.language-card {
    transition: .25s ease;
}

.language-card:hover {
    transform: translateY(-2px) scale(1.02);
}
@keyframes fadeItem {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes slowZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.08);
    }
}
@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@media (max-width: 767px){
    .auth-panel {
        animation: authFadeUp .5s ease;
    }

    .auth-cover-bg {
        animation: none;
    }
}
