/* auth.css - 로그인, 회원가입, 계정 페이지 스타일 */

/* style.css의 overflow: hidden 오버라이드 */
html, body {
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.auth-logo img {
    height: 40px;
    width: auto;
}

.auth-tagline {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 0 0 25px 0;
}

.auth-box h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
}

/* 알림 메시지 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.alert-warning {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.alert-info {
    background-color: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* 체크박스 */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label a {
    color: #1a1a1a;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* 버튼 */
.auth-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    text-decoration: none;
    background-color: #6b7280;
    color: white;
    box-sizing: border-box;
}

.auth-btn:hover {
    background-color: #4b5563;
}

.auth-btn:active {
    transform: scale(0.98);
}

.auth-btn.secondary {
    background-color: #f0f2f5;
    color: #333;
}

.auth-btn.secondary:hover {
    background-color: #e5e7eb;
}

.auth-btn.back {
    background-color: transparent;
    color: #999;
    border: 1px solid #ddd;
}

.auth-btn.back:hover {
    background-color: #f5f5f5;
    color: #4b5563;
}

.auth-btn.logout {
    background-color: #ef4444;
}

.auth-btn.logout:hover {
    background-color: #dc2626;
}

/* 계정 페이지 버튼 스타일 */
.auth-btn.btn-password {
    background-color: #ffffff;
    color: #333;
    border: none;
}

.auth-btn.btn-password:hover {
    background-color: #f5f5f5;
}

.auth-btn.btn-main {
    background-color: #ffffff;
    color: #E84A27;
    border: 2px solid #E84A27;
}

.auth-btn.btn-main:hover {
    background-color: #fff5f2;
}

.auth-btn.btn-logout {
    background-color: #ffffff;
    color: #ef4444;
    border: none;
}

.auth-btn.btn-logout:hover {
    background-color: #fef2f2;
}

/* 링크 */
.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.auth-links p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.auth-links p:last-child {
    margin-bottom: 0;
}

.auth-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-back {
    text-align: center;
    margin-top: 20px;
}

.auth-back a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
}

.auth-back a:hover {
    color: #4b5563;
}

/* 계정 정보 */
.account-info {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 계정 페이지 이용내역 섹션 */
.account-section {
    margin-bottom: 25px;
}

.account-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.history-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.history-link-card:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    transform: translateX(3px);
}

.history-link-icon {
    width: 44px;
    height: 44px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.history-link-icon svg {
    color: #667eea;
}

.history-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.history-link-desc {
    font-size: 12px;
    color: #888;
}

.history-link-arrow {
    color: #ccc;
    flex-shrink: 0;
}

.history-link-card:hover .history-link-arrow {
    color: #667eea;
}

/* 인증 페이지 푸터 */
.auth-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(248, 249, 250, 0.95);
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.auth-footer p {
    margin: 3px 0;
    font-size: 11px;
    color: #666;
}

.auth-footer a {
    color: #666;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 반응형 */
@media (max-width: 480px) {
    .auth-container {
        padding-bottom: 80px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .auth-box h1 {
        font-size: 20px;
    }

    .auth-footer {
        padding: 10px 15px;
    }

    .auth-footer p {
        font-size: 9px;
    }
}
