﻿:root {
    --auth-primary: #1f5aa6;
    --auth-primary-dark: #173b72;
    --auth-gold: #c49a47;
    --auth-text: #172033;
    --auth-muted: #6b7280;
    --auth-border: #e4e9f0;
    --auth-bg: #f4f7fb;
}

* { box-sizing: border-box; }

html, body, form { min-height: 100%; margin: 0; }

body { font-family: Tahoma, Arial, sans-serif; background: var(--auth-bg); color: var(--auth-text); }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 45%) 1fr; }

.auth-visual { position: relative; overflow: hidden; padding: 42px; color: #fff; background: linear-gradient(145deg, #0f2749, #1f5aa6 65%, #173b72); }

.auth-brand { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }

.auth-logo { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); font-size: 25px; }

.auth-brand h1 { margin: 0 0 4px; font-size: 28px; }
.auth-brand p { margin: 0; color: rgba(255,255,255,.75); }

.auth-visual-content { position: absolute; z-index: 2; right: 42px; left: 42px; bottom: 70px; }

.auth-kicker { display: inline-block; color: #f1d38e; margin-bottom: 14px; font-weight: 700; }
.auth-visual-content h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.25; margin: 0 0 14px; }
.auth-visual-content p { max-width: 620px; color: rgba(255,255,255,.78); line-height: 1.9; }

.auth-orb { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .25; }
.auth-orb-one { width: 320px; height: 320px; left: -100px; top: 10%; background: #d5b36b; }
.auth-orb-two { width: 420px; height: 420px; right: -160px; bottom: -140px; background: #7bb5ff; }

.auth-form-side { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(680px, 100%); background: #fff; border: 1px solid var(--auth-border); border-radius: 24px; box-shadow: 0 24px 70px rgba(23,32,51,.10); padding: 34px; }

.auth-heading { margin-bottom: 24px; }
.auth-heading h2 { margin: 0 0 8px; font-size: 27px; }
.auth-heading p { margin: 0; color: var(--auth-muted); line-height: 1.8; }

.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.auth-field-full { grid-column: 1 / -1; }
.auth-field label { font-size: 13px; font-weight: 700; }

.auth-input { min-height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--auth-border); border-radius: 12px; padding: 0 14px; background: #fff; }
.auth-input:focus-within { border-color: var(--auth-primary); box-shadow: 0 0 0 3px rgba(31,90,166,.10); }
.auth-input > i { color: #789; }
.auth-input input { flex: 1; border: 0; outline: 0; min-width: 0; font: inherit; background: transparent; color: var(--auth-text); }

.password-toggle { border: 0; background: transparent; cursor: pointer; color: var(--auth-muted); padding: 4px; }

.auth-submit { width: 100%; min-height: 49px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--auth-primary),var(--auth-primary-dark)); font: inherit; font-weight: 700; cursor: pointer; margin-top: 6px; }
.auth-link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.auth-footer { text-align: center; color: var(--auth-muted); margin-top: 18px; font-size: 14px; }
.auth-footer a, .auth-secondary-link { color: var(--auth-primary); font-weight: 700; text-decoration: none; }

.auth-validation { color: #b91c1c; font-size: 12px; }
.auth-message { padding: 13px 15px; border-radius: 11px; margin-bottom: 18px; line-height: 1.7; }
.auth-message-success { color: #166534; background: #ecfdf3; border: 1px solid #bbf7d0; }
.auth-message-error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }

.auth-status { text-align: center; padding: 18px 4px; }
.auth-status-icon { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; margin: 0 auto 20px; font-size: 32px; background: #eef2f7; color: #64748b; }
.auth-status-icon.success { background: #ecfdf3; color: #15803d; }
.auth-status-icon.error { background: #fef2f2; color: #b91c1c; }
.auth-status h2 { margin: 0 0 10px; }
.auth-status p { color: var(--auth-muted); line-height: 1.9; margin: 0 0 22px; }
.auth-secondary-link { display: inline-block; margin-top: 16px; }

@media (max-width: 950px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { min-height: 280px; }
    .auth-visual-content { position: relative; right: auto; left: auto; bottom: auto; margin-top: 70px; }
}

@media (max-width: 620px) {
    .auth-form-side { padding: 16px; }
    .auth-card { padding: 24px 18px; border-radius: 18px; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-field-full { grid-column: auto; }
    .auth-visual { padding: 26px; }
}

.archive-logo-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background-color: #e4e7ea !important;
}

.archive-logo-image {
    display: block;
    width: 140px;
    height: auto;
    object-fit: contain;
}