/***************************************************************************************
 * FileName : auth.css
 * Description : 로그인·회원가입 페이지 스타일 (inline style → CSS 분리)
 * Author : (주)한국공학기술연구원 박은정
 * Created Date : 2026.03.12
 * Modified Date :
 * Reference :
 ***************************************************************************************/

/* 2026.03.12 : 박은정 : auth/login.blade.php, auth/register.blade.php style 태그 분리 */

/* 공통: body 배경 */
body.auth-page {
    background: linear-gradient(135deg, #005DAA 0%, #1A1F71 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* 로그인 */
.login-container {
    max-width: 450px;
    margin: 0 auto;
}

.login-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: var(--rotary-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--rotary-primary);
}

.login-body {
    padding: 2rem;
}

.role-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.role-btn {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.role-btn input[type="radio"] {
    display: none;
}

.role-btn input[type="radio"]:checked + label {
    color: var(--rotary-primary);
    font-weight: 600;
}

.role-btn input[type="radio"]:checked ~ .role-icon {
    color: var(--rotary-primary);
}

.role-btn.active {
    border-color: var(--rotary-primary);
    background: rgba(0, 93, 170, 0.1);
}

.role-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--rotary-gray);
}

.role-label {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* 테스트 계정 패널 (APP_DEBUG only) */
.test-panel {
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.test-panel-header {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.test-panel-body {
    padding: 0.75rem;
}

.test-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0.25rem;
    padding-left: 0.25rem;
}

.test-group-title:first-child {
    margin-top: 0;
}

.test-account-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.test-account-btn .badge {
    font-size: 0.65rem;
    margin-right: 0.5rem;
    min-width: 70px;
}

.test-account-btn .account-email {
    color: #495057;
    font-size: 0.75rem;
}

@media (max-width: 860px) {
    .login-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .test-panel {
        width: 100%;
        max-width: 450px;
    }
}

/* 회원가입 */
.register-container {
    max-width: 550px;
    margin: 2rem auto;
}

.register-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.register-header {
    background: var(--rotary-primary);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.register-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: var(--rotary-primary);
}

.register-body {
    padding: 2rem;
}
