/* ============================================
   ARTKOLKHI — ავტორიზაცია / რეგისტრაცია
   ============================================ */

/* ჰედერის ავტორიზაციის ღილაკი (ყველა გვერდზე) */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-auth-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-burgundy);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-auth-btn:hover {
    background: var(--color-burgundy-light);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(139, 26, 26, 0.25);
}

.header-auth-btn.logged {
    background: var(--color-gold);
    font-size: 12px;
}

.header-auth-btn.logged:hover {
    background: var(--color-gold-light);
}

/* ============================================
   AUTH PAGE — Split Layout
   ============================================ */
.auth-section {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(181, 134, 13, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 26, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 100%, rgba(44, 24, 16, 0.06) 0%, transparent 50%),
        var(--color-bg-alt);
    padding: 40px 0;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ქარდი — split: მარცხნივ დეკორაცია, მარჯვნივ ფორმა */
.auth-card {
    width: 100%;
    max-width: 920px;
    background: var(--color-white);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(44, 24, 16, 0.1),
        0 4px 16px rgba(44, 24, 16, 0.05);
    border: 1px solid var(--color-border);
}

/* მარცხენა დეკორატიული პანელი */
.auth-deco {
    background: linear-gradient(160deg, var(--color-bg-dark) 0%, #3D1A10 40%, var(--color-burgundy) 100%);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-deco::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(181, 134, 13, 0.08);
}

.auth-deco::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(250, 247, 241, 0.03);
}

.auth-deco-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.auth-deco-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-deco-text {
    position: relative;
    z-index: 2;
}

.auth-deco-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-bg);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.auth-deco-sub {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-gold-light);
    font-style: italic;
    margin-bottom: 24px;
}

.auth-deco-desc {
    font-size: 13px;
    color: rgba(250, 247, 241, 0.45);
    line-height: 1.7;
}

.auth-deco-date {
    margin-top: 32px;
    padding: 12px 24px;
    border: 1px solid rgba(250, 247, 241, 0.15);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-gold-light);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* მარჯვენა — ფორმის ნაწილი */
.auth-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-heading);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

/* ფორმა */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(181, 134, 13, 0.1);
    background: var(--color-white);
}

/* ღილაკი */
.auth-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

/* შეცდომა */
.auth-error {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-left: 4px solid #E53E3E;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.auth-error p {
    font-size: 14px;
    color: #C53030;
    margin: 0;
    line-height: 1.6;
}

/* წარმატება */
.auth-success {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    border-left: 4px solid #38A169;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-success svg {
    color: #38A169;
}

.auth-success span {
    font-size: 16px;
    font-weight: 600;
    color: #276749;
}

/* გადართვა */
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.auth-switch a {
    color: var(--color-burgundy);
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--color-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 480px;
        border-radius: 20px;
    }

    .auth-deco {
        padding: 32px 24px;
    }

    .auth-deco-title {
        font-size: 22px;
    }

    .auth-deco-desc {
        display: none;
    }

    .auth-body {
        padding: 32px 28px;
    }

    .auth-title {
        font-size: 24px;
    }

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

    .header-right {
        gap: 10px;
    }

    .header-auth-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 20px 0;
    }

    .auth-body {
        padding: 24px 20px;
    }

    .auth-deco {
        padding: 24px 20px;
    }
}