.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

.auth-overlay.hidden {
    display: none;
}

.auth-container {
    width: min(1500px, 92vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 30px 60px;
    justify-content: flex-start;
}

/* 상단 헤더 영역 */
.auth-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    padding-top: 0;
}

.auth-title {
    font-size: 60px;
    font-weight: 700;
    color: white;
    margin: 0 0 18px;
    text-align: center;
    animation: fadeInDown 0.6s ease-out 0.1s both;
}

.auth-subtitle {
    font-size: 27px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-align: center;
    font-weight: 500;
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

/* 좌우 레이아웃 컨테이너 */
.auth-content {
    width: 100%;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.auth-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    grid-auto-rows: 1fr;
}

.auth-feature {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 42px 24px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 180px;
}

.auth-feature-icon {
    font-size: 42px;
}

.auth-feature-label {
    font-size: 20px;
    font-weight: 600;
}

.auth-feature-submenu {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-top: 10px;
}

.auth-card {
    flex: 0 0 570px;
    background: white;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 42px 36px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-version {
    margin-top: 36px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-card h1 {
    margin: 0 0 12px;
    font-size: 30px;
}

.auth-note {
    margin: 0 0 24px;
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.auth-field label {
    font-size: 18px;
    color: var(--text-muted);
}

.auth-field input {
    height: 54px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
    padding: 0 15px;
    outline: none;
    font-size: 16px;
}

.auth-field input:focus {
    border-color: var(--primary);
}

.auth-field input:disabled {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.4);
    cursor: not-allowed;
    border-color: rgba(0, 0, 0, 0.1);
}

.auth-submit {
    margin-top: 9px;
    height: 57px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}

.auth-submit:hover {
    filter: brightness(0.98);
}

.auth-error {
    min-height: 27px;
    font-size: 18px;
    color: #e74c3c;
}

.auth-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.auth-footer-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px;
}

.auth-footer-section:first-child {
    align-items: flex-end;
    text-align: right;
    border-right: 1px solid var(--border);
}

.auth-footer-section:last-child {
    align-items: flex-start;
    text-align: left;
}

.auth-footer-question {
    font-size: 15px;
    color: var(--text-muted);
}

.auth-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-link:hover {
    text-decoration: underline;
    color: #5a67d8;
}

.auth-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-link-small {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-link-small:hover {
    text-decoration: underline;
    color: #5a67d8;
}

.auth-footer-divider {
    font-size: 15px;
    color: var(--text-muted);
}

/* 반응형: 태블릿 이하에서 세로 배치 */
@media (max-width: 768px) {
    .auth-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .auth-card {
        flex: 1;
        width: 100%;
    }
}
