/* 로그인 페이지 스타일 */
.login-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 50px;
    width: 100%;
    max-width: 500px;
    margin: 0 20px;
}

.login-form-container {
    text-align: center;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.social-error-message {
    margin-bottom: 25px;
    padding: 14px 16px;
    background: #fdecea;
    border: 1px solid #f5c2c0;
    border-radius: 10px;
    color: #b71c1c;
    font-size: 14px;
    text-align: left;
}

.login-form {
    text-align: left;
}

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

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

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

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-container input {
    margin-right: 8px;
}

.forgot-password {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.login-recovery-links {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.link-text-btn {
    background: none;
    border: none;
    padding: 0;
    color: #4CAF50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.link-text-btn:hover {
    text-decoration: underline;
}

.link-sep {
    margin: 0 8px;
    color: #ccc;
}

/* 아이디/비밀번호 찾기 모달 */
.recovery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.recovery-modal.is-open {
    display: flex;
}

.recovery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.recovery-modal-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.recovery-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
}

.recovery-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.recovery-modal-title {
    font-size: 22px;
    margin: 0 0 10px;
    color: #333;
}

.recovery-modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 18px;
}

.recovery-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.btn-recovery-primary {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-recovery-primary:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.recovery-message {
    min-height: 1.2em;
    font-size: 14px;
    color: #333;
    text-align: left;
    margin-top: 8px;
}

.recovery-result {
    margin-top: 16px;
    padding: 16px;
    background: #f0f9f4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    color: #1b5e20;
}

.recovery-account-value {
    display: inline-block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    word-break: break-all;
}

.recovery-after-find {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #c8e6c9;
}

.btn-recovery-secondary {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    color: #2e7d32;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-recovery-secondary:hover {
    background: #e8f5e9;
}

.recovery-field-error {
    margin: -4px 0 12px;
    font-size: 14px;
    color: #c62828;
    font-weight: 500;
}

.recovery-field-error--below-submit {
    margin: 10px 0 0;
    text-align: center;
}

.recovery-verify-row {
    margin-top: 8px;
    min-height: 1.2em;
}

.recovery-verify-timer {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
}

.btn-login-submit {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* 소셜 로그인 섹션 스타일 */
.social-login-section {
    margin-top: 40px;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider-text {
    background: white;
    padding: 0 20px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* 모든 소셜 버튼을 동일한 크기로 통일 */
.kakao-btn,
.naver-btn,
.google-btn {
    height: 60px;
}

.kakao-btn .social-btn-image,
.naver-btn .social-btn-image,
.google-btn .social-btn-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .login-container {
        padding: 30px;
        margin: 0 10px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

