/**
 * 로그인 페이지 스타일
 * 쿠팡 브라우저 관리시스템
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #F5F5F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 로그인 컨테이너 */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* 로그인 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.login-header .subtitle {
    font-size: 14px;
    color: #666666;
}

/* 에러 메시지 */
.error-message {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #C62828;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message i {
    font-size: 18px;
}

/* 폼 그룹 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

/* Input wrapper */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #BDBDBD;
    font-size: 16px;
}

.input-wrapper .form-control {
    padding-left: 45px;
}

/* Form control */
.form-control {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 15px;
    color: #333333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-control::placeholder {
    color: #BDBDBD;
}

.form-control.no-icon {
    padding-left: 15px;
}

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    height: 50px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #333333;
}

/* 로그인 푸터 */
.login-footer {
    margin-top: 25px;
    text-align: center;
}

.login-footer-links {
    font-size: 13px;
}

.login-footer-links a {
    color: #666666;
    text-decoration: none;
}

.login-footer-links a:hover {
    color: #000000;
    text-decoration: underline;
}

.login-footer-links .divider {
    color: #E0E0E0;
    margin: 0 10px;
}

/* ========================================
   모달 스타일
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333333;
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

/* 모달 안내 메시지 */
.modal-info {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

.modal-info i {
    color: #2196F3;
    margin-right: 8px;
}

/* 모달 버튼 */
.btn-modal {
    width: 100%;
    height: 46px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-modal:hover {
    background: #333333;
}

.btn-modal.btn-secondary {
    background: #E0E0E0;
    color: #333333;
}

.btn-modal.btn-secondary:hover {
    background: #BDBDBD;
}

/* 인증 타이머 */
.verify-timer {
    margin-top: 10px;
    font-weight: 600;
    color: #F44336;
}

.verify-code-input {
    letter-spacing: 8px;
    font-size: 20px;
    text-align: center;
    font-weight: 600;
}

/* 모달 결과 */
.modal-result {
    text-align: center;
    padding: 20px 0;
}

.modal-result i {
    font-size: 48px;
    margin-bottom: 15px;
}

.modal-result.success i {
    color: #4CAF50;
}

.modal-result.error i {
    color: #F44336;
}

.modal-result h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.modal-result p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.modal-result p small {
    color: #999999;
}

.result-box {
    background: #F5F5F5;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.result-box .label {
    font-size: 12px;
    color: #999999;
    margin-bottom: 5px;
}

.result-box .value {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 1px;
}

/* 필수 항목 표시 */
.required-mark {
    color: #F44336;
}

/* 숨김 클래스 */
.hidden {
    display: none !important;
}

/* ========================================
   반응형
   ======================================== */

@media (max-width: 480px) {
    .login-box {
        padding: 30px 25px;
    }

    .login-header .logo {
        font-size: 28px;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-body {
        padding: 20px;
    }
}
