/* 로그인 페이지 전체 */
.login-page {
    background: #f8f8f8;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

/* 로그인 래퍼 */
.login-wrapper {
    max-width: 460px;
    margin: 0 auto;
}

/* 로그인 박스 */
.login-box {
    background: white;
    border: 1px solid #ddd;
    padding: 0;
}

/* 로그인 타이틀 */
.login-title {
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
    padding: 20px 30px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 탭 버튼 */
.login-tab {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: #f7f7f7;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    border-bottom: 2px solid #0066cc;
    color: #0066cc;
    font-weight: 600;
}

/* 에러 메시지 */
.error-message {
    margin: 20px 30px 0;
    padding: 12px 15px;
    background: #fff5f5;
    border: 1px solid #ffdddd;
    color: #d00;
    font-size: 13px;
    line-height: 1.5;
}

/* 로그인 폼 */
.login-form {
    padding: 30px;
}

/* 인풋 그룹 */
.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    padding: 0 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #0066cc;
}

.input-group input::placeholder {
    color: #999;
}

/* 아이디 저장 체크박스 */
.save-id {
    margin: 20px 0;
}

.save-id label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.save-id input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    height: 50px;
    background: #0066cc;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #0052a3;
}

/* 하단 링크 */
.login-links {
    padding: 20px 30px;
    background: #f7f7f7;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 13px;
}

.login-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.login-links .divider {
    margin: 0 15px;
    color: #ddd;
}

/* 로그인 완료 상태 */
.logged-in-msg {
    padding: 20px 30px;
    font-size: 15px;
    color: #666;
    text-align: center;
}

.button-group {
    padding: 20px 30px 30px;
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    border-color: #0052a3;
}

.btn-secondary {
    background: white;
    border-color: #ddd;
    color: #666;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #999;
    color: #333;
}

/* 반응형 */
@media (max-width: 768px) {
    .login-page {
        padding: 40px 20px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-title {
        font-size: 16px;
        padding: 18px 20px;
    }

    .login-form {
        padding: 20px;
    }

    .login-links {
        padding: 15px 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 30px 15px;
    }

    .tab-btn {
        font-size: 14px;
        padding: 12px;
    }

    .input-group input {
        height: 42px;
        font-size: 14px;
    }

    .btn-login {
        height: 45px;
        font-size: 15px;
    }

    .login-links {
        font-size: 12px;
    }

    .login-links .divider {
        margin: 0 10px;
    }
}