.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background: #0056b3;
}

.btn-login:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-footer {
    text-align: center;
}

.login-footer p {
    margin-bottom: 10px;
    color: #666;
}

.btn-signup {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

.checkbox-group {
    margin-bottom: 20px;
}

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

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.2);
}

.checkmark {
    margin-left: 4px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 16px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* 로그인 CSS */
/* 필드 공통 */
.field{margin-bottom:14px}
.field label{
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 120%; /* 1.05rem */
    letter-spacing: -0.04375rem;
}
.input-wrap{position:relative}
.icon-btn{
  position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:36px; height:36px; display:grid; place-items:center; background:transparent; border:0; cursor:pointer;
}

/* 눈알 아이콘 */
.eye-icon{
    min-width: 64px;
    display: flex;
    height: 1.5rem;
    padding: 0 0.25rem;
    justify-content: center;
    align-items: center;
    gap: 0.125rem;
    border-radius: 6.1875rem;
    border: 1px solid #999;
    color: #999;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 120%; /* 0.975rem */
    letter-spacing: -0.04063rem;
}
.eye-icon::before{
    content: "";
    width: 1rem;
    height: 1rem;
    aspect-ratio: 1/1;
    background: url(../img/eye-closed.png);
}
.eye-icon.active{
    border: 1px solid #D42A54;
    color: #D42A54;

}
.eye-icon.active::before{
    background: url(../img/eye-open.png);

}
