/* Google Fonts에서 'Noto Sans KR' 폰트 임포트 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

/* 전체 페이지 기본 스타일 */
body {
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

/* 로그인 폼을 감싸는 컨테이너 */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

/* 로고 이미지 스타일 */
.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
}

/* '로그인' 제목 스타일 */
.login-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* 각 입력 필드를 그룹화하는 div */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

/* 라벨 스타일 */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* 입력창(input) 기본 스타일 */
.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

/* 입력창 포커스 시 테두리 색상 변경 */
.input-group input:focus {
    outline: none;
    border-color: #e53e3e;
}

/* 로그인 버튼 스타일 */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; /* 로딩 스피너 위치 기준 */
}

.login-btn:hover {
    background-color: #c53030;
}

/* 로딩 스피너 관련 스타일 */
.btn-text {
    transition: opacity 0.2s;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
}
.login-btn.loading .btn-text {
    opacity: 0;
}
.login-btn.loading .spinner {
    opacity: 1;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ⭐ [수정됨] 하단 링크 스타일 */
.extra-links {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
    /* 제안해주신 대로 text-align을 사용하여 중앙 정렬합니다. */
    width: 100%;
    text-align: center;
}

.extra-links a, .extra-links span {
    /* 각 요소 사이에 약간의 여백을 줍니다. */
    margin: 0 5px;
}

.extra-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.extra-links a:hover {
    text-decoration: underline;
}

.extra-links span {
    color: #ccc;
}

/* 인라인 메시지 스타일 */
.validation-message {
    font-size: 12px;
    margin-top: 5px;
    min-height: 1.2em;
}
.validation-message.error {
    color: #dc3545;
}
.input-group input.error {
    border-color: #dc3545;
}

/* 토스트 메시지 스타일 */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.5s;
}
.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}
.toast.success {
    background-color: #28a745;
}
.toast.error {
    background-color: #dc3545;
}
