.auth-layout {
    min-height: calc(100vh - 140px);
    padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(520px, 100%);
    background: rgba(6, 11, 25, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.auth-card--wide {
    width: min(820px, 100%);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -35%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255, 143, 63, 0.35), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.auth-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -45% auto;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.35), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.auth-card > * {
    position: relative;
    z-index: 2;
}

.auth-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff914d, #ffbe6a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #1e1207;
    box-shadow: 0 12px 30px rgba(255, 145, 77, 0.45);
    margin-bottom: 1rem;
}

.auth-icon--logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
    overflow: hidden;
}

.auth-icon--logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.auth-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin: 0 0 0.4rem;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-card form .form-group {
    margin-bottom: 0;
}

.auth-card form label {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auth-card form input,
.auth-card form select,
.auth-card form textarea,
.auth-card form .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-card form input:focus,
.auth-card form select:focus,
.auth-card form textarea:focus,
.auth-card form .form-control:focus {
    outline: none;
    border-color: rgba(255, 143, 63, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 143, 63, 0.15);
}

.btn-gradient,
.auth-card form button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff7a17, #ffbe6a 60%, #ffe7c7);
    color: #1e1207;
    box-shadow: 0 20px 40px rgba(255, 122, 23, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-gradient:hover,
.auth-card form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 25px 50px rgba(255, 122, 23, 0.45);
}

.auth-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.auth-meta a,
.auth-link {
    color: #fefefe;
    font-weight: 600;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.auth-link:hover {
    opacity: 1;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-meta h2 {
    margin: 0;
    font-size: 1.5rem;
}

.profile-meta p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.auth-card .info-paragraph {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-validation {
    display: none;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 99, 71, 0.08);
    border: 1px solid rgba(255, 99, 71, 0.35);
    color: #ffc2b8;
    font-weight: 500;
    margin-bottom: 1rem;
}

.auth-validation.is-visible {
    display: block;
}

@media (max-width: 640px) {
    .auth-layout {
        padding: clamp(1.5rem, 7vw, 2.5rem) clamp(0.75rem, 5vw, 1.25rem);
    }

    .auth-card {
        border-radius: 24px;
    }

    .profile-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}
