/* متغيرات الألوان */
:root {
    --primary-color: #E74C3C;
    --primary-dark: #C0392B;
    --primary-light: rgba(231, 76, 60, 0.1);
    --secondary-color: #2C3E50;
    --accent-color: #3498DB;
    --success-color: #2ECC71;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --dark-bg: #0A0A0F;
    --card-bg: #1A1A24;
    --input-bg: #252533;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0C0;
    --text-muted: #808090;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    --gradient-secondary: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    --gradient-success: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
}

/* رسوميات متحركة في الخلفية */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--dark-bg) 0%, #151520 100%);
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(231, 76, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(46, 204, 113, 0.08) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* الهيدر الخاص بصفحة الحساب */
.account-header {
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.account-home-link:hover {
    color: #fff;
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.12);
    transform: translateY(-1px);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: white;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.logo-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* المحتوى الرئيسي */
.account-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.account-container {
    width: 100%;
    max-width: 500px;
    animation: fadeIn 0.8s ease-out;
}

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

/* الحاويات الخاصة بالنماذج */
.form-container {
    background: linear-gradient(155deg, rgba(37, 37, 51, 0.98), rgba(26, 26, 36, 0.98));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(100px);
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    visibility: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.65), transparent 42%, rgba(52, 152, 219, 0.32));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.form-container.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    visibility: visible;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.login-security-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0 0 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.25);
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.08);
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.login-security-note strong {
    color: var(--text-primary);
    margin-inline-end: 0.25rem;
}

.security-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(52, 152, 219, 0.18);
    color: #65b8f3;
}

/* نماذج المصادقة */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    direction: ltr;
    text-align: right;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.input-group input:focus + .input-icon {
    color: var(--primary-color);
}

.terms-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    cursor: pointer;
}

.terms-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0.3rem;
    flex: 0 0 18px;
    accent-color: var(--primary-color);
}

.terms-consent a {
    color: #65b8f3;
    font-weight: 600;
    text-decoration: none;
}

.terms-consent a:hover {
    text-decoration: underline;
}

/* الأزرار */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-login {
    background: var(--gradient-primary);
    color: white;
}

.btn-register {
    background: var(--gradient-secondary);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* حقل رفع الصور */
.picture-upload-container {
    margin: 1.5rem 0;
}

.picture-upload-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.picture-upload-card {
    border: 3px dashed var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--input-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.picture-upload-card:hover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.05);
    transform: translateY(-2px);
}

.picture-upload-card.dragover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.upload-content {
    margin-bottom: 1rem;
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-text {
    color: var(--text-primary);
}

.upload-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.upload-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.upload-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.image-preview {
    display: none;
    position: relative;
    margin-top: 1rem;
}

.picture-preview {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.remove-picture {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--danger-color);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-picture:hover {
    transform: scale(1.1);
    background: #C0392B;
}

.file-input {
    display: none;
}

/* معاينة الصورة عند وجودها */
.picture-upload-card.has-image .upload-content,
.picture-upload-card.has-image .upload-hint {
    display: none;
}

.picture-upload-card.has-image .image-preview {
    display: block;
}

/* أسفل النموذج */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-secondary);
}

.forgot-password-row {
    margin-top: 0.9rem;
    text-align: center;
}

.forgot-password-row a {
    color: #808899;
    font-size: 0.7rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.forgot-password-row a:hover {
    color: #ef7166;
}

.forgot-password-row i {
    margin-inline-end: 0.3rem;
}

.reset-security-note {
    margin-bottom: 1.2rem;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid rgba(66, 137, 217, 0.16);
    border-radius: 12px;
    color: #8e9db1;
    background: rgba(66, 137, 217, 0.055);
    font-size: 0.72rem;
}

.reset-security-note i {
    color: #72a8e5;
    font-size: 1rem;
}

.reset-confirm-form[hidden],
.reset-request-form[hidden] {
    display: none;
}

#reset-code {
    direction: ltr;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.35em;
}

.form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-link:hover {
    color: white;
}

.form-link:hover::after {
    width: 100%;
}

/* منطقة الرسائل */
.message-area {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    animation: slideUp 0.5s ease-out;
    display: none;
}

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

.message-area.success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.message-area.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.message-area.info {
    display: block;
    background: rgba(52, 152, 219, 0.2);
    color: #3498DB;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* تأثيرات الجسيمات */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* تأثيرات النجاح */
.success-effect {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--success-color) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

.success-effect.active {
    animation: successPulse 1s ease-out;
}

@keyframes successPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .account-header {
        padding: 1rem;
    }
    
    .header-logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .account-main {
        padding: 1rem;
    }

    .account-home-link {
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-text p,
    .account-home-link {
        display: none;
    }

    .form-container {
        padding: 1.25rem;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .input-group input {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
    }
    
    .input-icon {
        left: 0.875rem;
    }
    
    .picture-upload-card {
        padding: 1.5rem;
    }
    
    .picture-preview {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 375px) {
    .form-container {
        padding: 1rem;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .input-group input {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.9rem;
    }
}

/* ==================== Professional authentication UI ==================== */
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
    background: #090a0f;
    font-family: "Cairo", sans-serif;
}

.background-animation {
    background:
        radial-gradient(circle at 8% 15%, rgba(231, 76, 60, 0.15), transparent 25rem),
        radial-gradient(circle at 92% 85%, rgba(52, 152, 219, 0.12), transparent 28rem),
        linear-gradient(145deg, #090a0f 0%, #11131b 52%, #090a0f 100%);
}

.background-animation::before {
    opacity: 0.55;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: none;
}

.account-header {
    min-height: 74px;
    padding: 0.7rem clamp(1rem, 4vw, 4rem);
    background: rgba(9, 10, 15, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0;
    background: #151720;
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.18);
}

.logo-text h1 {
    font-size: 1.25rem;
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
    letter-spacing: -0.02em;
}

.logo-text p {
    font-size: 0.74rem;
}

.account-home-link {
    padding: 0.68rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.account-main {
    min-height: calc(100vh - 74px);
    padding: clamp(1.25rem, 4vw, 3.25rem);
    align-items: center;
}

.auth-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(330px, 0.85fr) minmax(560px, 1.35fr);
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: rgba(19, 21, 29, 0.82);
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    isolation: isolate;
    animation: fadeIn 0.65s ease-out;
}

.auth-showcase {
    position: relative;
    min-height: 660px;
    padding: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.12), transparent 24rem),
        linear-gradient(155deg, #dc3f33 0%, #9f211c 55%, #6d1716 100%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase::before {
    width: 360px;
    height: 360px;
    inset: auto -170px -110px auto;
    border: 70px solid rgba(255, 255, 255, 0.055);
}

.auth-showcase::after {
    width: 210px;
    height: 210px;
    inset: -90px auto auto -90px;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(2px);
}

.showcase-content,
.showcase-footer {
    position: relative;
    z-index: 1;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-size: 0.78rem;
    font-weight: 700;
}

.showcase-brand-mark {
    width: 78px;
    height: 78px;
    margin: 2.5rem 0 1.1rem;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 42px rgba(65, 8, 8, 0.32);
    transform: rotate(-3deg);
}

.showcase-brand-mark img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 18px;
    object-fit: cover;
}

.showcase-kicker {
    margin: 0 0 0.55rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.auth-showcase h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.22;
    letter-spacing: -0.055em;
}

.auth-showcase h2 span {
    color: #ffd5d1;
}

.showcase-description {
    max-width: 31rem;
    margin: 1rem 0 1.8rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.96rem;
    line-height: 1.9;
}

.security-features {
    display: grid;
    gap: 0.75rem;
}

.security-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    background: rgba(86, 8, 8, 0.14);
}

.security-feature > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.security-feature strong,
.security-feature small {
    display: block;
}

.security-feature strong {
    color: #fff;
    font-size: 0.84rem;
}

.security-feature small {
    margin-top: 0.12rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.71rem;
}

.showcase-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
}

.showcase-footer i {
    color: #ffd1cd;
    margin-inline-end: 0.3rem;
}

.account-container {
    max-width: none;
    min-width: 0;
    animation: none;
}

.auth-panel {
    min-height: 660px;
    padding: clamp(1.6rem, 4vw, 3.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(160deg, rgba(28, 30, 41, 0.97), rgba(16, 18, 25, 0.97));
}

.auth-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.secure-status {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #8f98ab;
    font-size: 0.74rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #35d17e;
    box-shadow: 0 0 0 5px rgba(53, 209, 126, 0.1);
}

.auth-tabs {
    display: flex;
    gap: 0.3rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
}

.auth-tab {
    min-width: 105px;
    padding: 0.65rem 0.9rem;
    border: 0;
    border-radius: 9px;
    color: #9299aa;
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.22s ease;
}

.auth-tab:hover {
    color: #fff;
}

.auth-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #b72f28);
    box-shadow: 0 8px 22px rgba(231, 76, 60, 0.26);
}

.auth-panel .form-container {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    transform: translateY(12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.auth-panel .form-container::before {
    display: none;
}

.auth-panel .form-container.active {
    transform: translateY(0);
}

.auth-panel .form-container[hidden] {
    display: none;
}

.form-header {
    margin-bottom: 1.45rem;
    text-align: right;
}

.form-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: #ef7166;
    font-size: 0.74rem;
    font-weight: 800;
}

.form-header h2 {
    margin: 0 0 0.4rem;
    justify-content: flex-start;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.form-subtitle {
    margin: 0;
    color: #8f96a7;
    font-size: 0.85rem;
    line-height: 1.7;
}

.login-security-note {
    margin-bottom: 1.25rem;
    padding: 0.72rem 0.85rem;
    border-color: rgba(53, 209, 126, 0.17);
    border-radius: 12px;
    background: rgba(53, 209, 126, 0.06);
    font-size: 0.75rem;
}

.security-note-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    color: #56db91;
    background: rgba(53, 209, 126, 0.12);
}

.auth-form {
    gap: 1rem;
}

.registration-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.registration-form .form-span {
    grid-column: 1 / -1;
}

.input-group {
    min-width: 0;
}

.input-group label {
    margin-bottom: 0.42rem;
    color: #d9dce5;
    font-size: 0.76rem;
    font-weight: 700;
}

.input-group input {
    min-height: 52px;
    padding: 0.8rem 2.9rem 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    color: #f8f8fb;
    background: rgba(255, 255, 255, 0.045);
    font-family: inherit;
    font-size: 0.86rem;
    direction: rtl;
    text-align: right;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

.input-group input[type="email"],
.input-group input[type="password"] {
    direction: ltr;
    text-align: left;
}

.input-group input:focus {
    border-color: rgba(239, 86, 72, 0.9);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.09);
    transform: none;
}

.input-group input::placeholder {
    color: #676e7f;
}

.input-icon {
    top: 43px;
    left: auto;
    right: 1rem;
    color: #737b8c;
    transform: translateY(-50%);
}

.input-group input:focus + .input-icon {
    color: #ef6559;
}

.password-group input {
    padding-left: 3rem;
}

.password-toggle {
    position: absolute;
    top: 43px;
    left: 0.75rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #7f8798;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.password-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.password-strength {
    margin-top: 0.55rem;
}

.strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    direction: ltr;
}

.strength-bars span {
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.09);
    transition: 0.2s ease;
}

.password-strength small {
    display: block;
    margin-top: 0.32rem;
    color: #6f7687;
    font-size: 0.65rem;
}

.password-strength[data-score="1"] .strength-bars span:nth-child(-n+1),
.password-strength[data-score="2"] .strength-bars span:nth-child(-n+2),
.password-strength[data-score="3"] .strength-bars span:nth-child(-n+3),
.password-strength[data-score="4"] .strength-bars span:nth-child(-n+4) {
    background: var(--strength-color, #e74c3c);
}

.password-strength[data-score="2"] {
    --strength-color: #f39c12;
}

.password-strength[data-score="3"],
.password-strength[data-score="4"] {
    --strength-color: #35d17e;
}

.terms-consent {
    padding: 0.75rem 0.85rem;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.73rem;
}

.terms-consent input {
    margin-top: 0.22rem;
}

.terms-consent a {
    color: #ef7166;
}

.picture-upload-container {
    margin: 0;
}

.picture-upload-label {
    margin: 0 0 0.5rem;
    color: #d9dce5;
    font-size: 0.76rem;
    font-weight: 700;
}

.picture-upload-label small {
    color: #6f7687;
    font-weight: 500;
}

.picture-upload-card {
    min-height: 82px;
    padding: 1rem;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
}

.picture-upload-card:hover {
    border-color: rgba(239, 86, 72, 0.58);
    background: rgba(231, 76, 60, 0.045);
    transform: none;
}

.upload-content {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.upload-icon {
    margin: 0;
    color: #ef6559;
    font-size: 1.45rem;
}

.upload-title,
.upload-subtitle {
    margin: 0;
}

.upload-title {
    color: #d9dce5;
    font-size: 0.76rem;
}

.upload-subtitle {
    margin-top: 0.16rem;
    color: #6f7687;
    font-size: 0.65rem;
}

.image-preview {
    margin: 0;
}

.picture-preview {
    width: 76px;
    height: 76px;
    border: 2px solid rgba(239, 86, 72, 0.7);
    border-radius: 16px;
}

.btn {
    min-height: 52px;
    margin-top: 0.2rem;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
}

.btn-login,
.btn-register {
    color: #fff;
    background: linear-gradient(135deg, #ef5144, #bd2f28);
    box-shadow: 0 12px 28px rgba(194, 42, 34, 0.22);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(194, 42, 34, 0.3);
}

.form-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.form-footer p {
    margin: 0;
    color: #7e8596;
    font-size: 0.77rem;
}

.form-link {
    color: #ef7166;
}

.message-area {
    margin-top: 1rem;
    padding: 0.78rem;
    border-radius: 11px;
    font-size: 0.75rem;
}

@media (max-width: 980px) {
    .auth-shell {
        width: min(700px, 100%);
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        min-height: auto;
        padding: 1.5rem;
    }

    .showcase-content {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        align-items: center;
    }

    .showcase-badge {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }

    .showcase-brand-mark {
        grid-row: 2 / 5;
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .showcase-kicker,
    .auth-showcase h2,
    .showcase-description {
        grid-column: 2;
    }

    .auth-showcase h2 {
        font-size: 1.85rem;
    }

    .showcase-description {
        margin: 0.4rem 0 0;
        font-size: 0.8rem;
    }

    .security-features,
    .showcase-footer {
        display: none;
    }

    .auth-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .account-header {
        min-height: 64px;
    }

    .account-main {
        min-height: calc(100vh - 64px);
        padding: 0.75rem;
        align-items: flex-start;
    }

    .auth-shell {
        border-radius: 22px;
    }

    .auth-showcase {
        padding: 1.1rem;
    }

    .showcase-badge {
        display: none;
    }

    .showcase-brand-mark {
        grid-row: 1 / 4;
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .showcase-kicker {
        margin-bottom: 0.2rem;
    }

    .auth-showcase h2 {
        font-size: 1.35rem;
    }

    .showcase-description {
        display: none;
    }

    .auth-panel {
        padding: 1.2rem;
    }

    .auth-panel-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 1.45rem;
    }

    .auth-tabs {
        width: 100%;
    }

    .auth-tab {
        flex: 1;
        min-width: 0;
    }

    .registration-form {
        grid-template-columns: 1fr;
    }

    .registration-form .form-span {
        grid-column: auto;
    }

    .form-header h2 {
        font-size: 1.65rem;
    }

    .logo-text p {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
