/* auth.css - HARA 로그인/회원가입 스타일 */

/* 컨테이너 */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 카드 */
.auth-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

.auth-card-wide {
    max-width: 600px;
}

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

/* 헤더 */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

/* 폼 섹션 */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: #f8faff;
}

.form-control::placeholder {
    color: #aaa;
}

/* 폼 에러 */
.form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

.form-hint {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

/* 폼 행 */
.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-row-3 .form-group {
    flex: 1;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 푸터 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: #666;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 프로필 페이지 */
.profile-info {
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.profile-avatar i {
    font-size: 48px;
    color: white;
}

.profile-details {
    text-align: left;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: #666;
}

.profile-value {
    color: #333;
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.profile-actions .btn {
    flex: 1;
}

/* 배지 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #667eea;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 16px;
        min-height: calc(100vh - 150px);
    }

    .auth-card {
        padding: 28px 20px;
        max-width: 100%;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 24px;
    }

    .form-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 600px) {
    .auth-container {
        padding: 16px 12px;
        align-items: flex-start;
        padding-top: 24px;
    }

    .auth-card {
        padding: 24px 16px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .auth-header p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* iOS 줌 방지 */
        border-radius: 8px;
        min-height: 48px;
    }

    .form-hint {
        font-size: 11px;
    }

    .form-error {
        font-size: 12px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row-3 {
        flex-direction: row;
        gap: 8px;
    }

    .form-row-3 .form-group {
        flex: 1;
        min-width: 0;
    }

    .form-row-3 .form-control {
        padding: 10px 8px;
        font-size: 14px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }

    .auth-footer {
        margin-top: 20px;
        padding-top: 20px;
    }

    .auth-footer p {
        font-size: 13px;
    }

    /* 프로필 페이지 */
    .profile-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .profile-avatar i {
        font-size: 36px;
    }

    .profile-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-label {
        font-size: 12px;
    }

    .profile-value {
        font-size: 14px;
    }

    .profile-actions {
        flex-direction: column;
        gap: 10px;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

/* 반응형 - 초소형 모바일 */
@media (max-width: 380px) {
    .auth-container {
        padding: 12px 8px;
    }

    .auth-card {
        padding: 20px 12px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .form-section h3 {
        font-size: 14px;
    }

    .form-row-3 {
        flex-direction: column;
        gap: 0;
    }

    .btn {
        font-size: 14px;
    }
}

/* 가로 모드(Landscape) 최적화 */
@media (max-height: 500px) and (orientation: landscape) {
    .auth-container {
        padding: 12px 16px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 16px 20px;
        max-width: 500px;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .auth-header h2 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .form-section {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .btn {
        padding: 10px 16px;
        min-height: 40px;
    }

    .auth-footer {
        margin-top: 12px;
        padding-top: 12px;
    }
}
