/* login.css - 로그인/회원가입/찾기 페이지 통합 스타일 */

:root {
    --primary-color: #55858b;
    /* 이미지의 메인 Teal 컬러 */
    --primary-hover: #456e74;
    --text-color: #333;
    --text-secondary: #888;
    --border-color: #e0e0e0;
    --bg-color: #f9f9f9;
    --white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-page-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.login-header {
    text-align: left;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #000;
}

.login-header p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 500;
}

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

/* 회원 유형 선택기 스타일 */
.member-type-selector {
    display: flex;
    background-color: #f0f0f0;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.type-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #888;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.type-btn i {
    margin-right: 8px;
}

/* 기업 전용 필드 애니메이션 */
.company-only-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    margin-top: 0;
}

.company-only-field.show {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.input-grid-2 {
    display: flex;
    gap: 15px;
}

.input-grid-2 .input-group {
    flex: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
}

/* Row for email, etc. */
.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-row .auth-input.half {
    flex: 1;
}

.input-row span {
    font-weight: 600;
    color: #666;
}

/* ID check group */
.id-check-group {
    display: flex;
    gap: 8px;
}

.id-check-group .auth-input {
    flex: 1;
}

.check-id-btn {
    padding: 0 15px;
    background-color: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.check-id-btn:hover {
    background-color: #e0e0e0;
}

/* Password group with eye icon */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-group .auth-input {
    width: 100%;
    padding-right: 45px;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

.toggle-pw:hover {
    color: var(--primary-color);
}

.auth-input {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fafafa;
    transition: all 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(85, 133, 139, 0.1);
}

.auth-input::placeholder {
    color: #ccc;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 0.9rem;
}

.save-id {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
}

.save-id input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.find-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.auth-btn {
    margin-top: 10px;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.auth-btn:hover {
    background-color: var(--primary-hover);
}

.auth-join {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #999;
}

.auth-join a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.social-login {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #333;
    gap: 10px;
}

.social-btn:hover {
    background-color: #f5f5f5;
}

/* 소셜 텍스트 컬러 */
.text-google {
    font-weight: bold;
}

.text-google span:nth-child(1) {
    color: #4285F4;
}

.text-google span:nth-child(2) {
    color: #EA4335;
}

.text-google span:nth-child(3) {
    color: #FBBC05;
}

.text-google span:nth-child(4) {
    color: #4285F4;
}

.text-google span:nth-child(5) {
    color: #34A853;
}

.text-google span:nth-child(6) {
    color: #EA4335;
}

.text-naver {
    color: #03C75A;
    font-weight: bold;
}

.text-kakao {
    color: #FEE500;
    font-weight: bold;
}

/* Tabs for Find Auth */
.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    color: #999;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.form-box {
    display: none;
}

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

/* Result box */
.result-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.id-row:last-child {
    border-bottom: none;
}

.send-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
}

.send-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.auth-agree {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.auth-agree input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* 기업 회원 가입 공지 사항 스타일 */
.company-notice {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: #f0f7f8;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.company-notice i {
    font-size: 1.1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 20px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }

    .input-row {
        gap: 4px;
        align-items: center;
    }

    .input-row .auth-input.half {
        padding: 14px 8px;
        font-size: 0.9rem;
        flex: 1;
        min-width: 0;
        /* 플렉스 아이템이 너비를 줄일 수 있게 함 */
    }

    .input-row span {
        font-size: 0.8rem;
    }

    .id-check-group {
        gap: 6px;
    }

    .check-id-btn {
        padding: 0 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}