/**
 * Admin Auth Common Styles
 * 로그인, OTP 인증 등 관리자 인증 관련 공통 스타일
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container */
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Box */
.auth-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
}

/* Title */
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #333;
}

/* OTP Input */
.form-group input.otp-input {
    height: 56px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 8px;
}

/* Buttons */
.btn-auth {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-auth:hover {
    background-color: #555;
}

.btn-auth:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Messages */
.error-message {
    background-color: #fee;
    color: #c00;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.error-message.show {
    display: block;
}

.info-message {
    background-color: #e8f4fd;
    color: #0066cc;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 10px;
}

.loading.show {
    display: block;
}

/* Links */
.auth-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-link a {
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.auth-link a:hover {
    color: #333;
    text-decoration: underline;
}
