/* 로그인 페이지 전용 스타일 */

/* 메인으로 버튼 스타일 (프로젝트 등록 페이지와 동일) */
.back-btn {
    background: #2a2a3e;
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #3a3a4e;
}

.back-btn:hover {
    background: #34344a;
    color: #ffffff;
    transform: translateY(-1px);
    border-color: #4a4a5e;
}

body.light-mode .back-btn {
    background: transparent;
    border: none;
    color: #495057;
    box-shadow: none;
}

body.light-mode .back-btn:hover {
    background: transparent;
    border: none;
    color: #212529;
    box-shadow: none;
    transform: none;
}

.login-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 0;
}

.login-title {
    font-size: 36px;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin: 0 0 12px 0;
}

body:not(.light-mode) .login-title {
    color: #ffffff;
}

.login-subtitle {
    font-size: 15px;
    color: #6c757d;
    text-align: center;
    margin: 0 0 40px 0;
    line-height: 1.5;
}

body:not(.light-mode) .login-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.login-form-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.login-input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    color: #212529;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

body:not(.light-mode) .login-input {
    border: 1px solid #3a3a4e;
    background: #1f1f35;
    color: #ffffff;
}

.login-input::placeholder {
    color: #adb5bd;
    font-size: 15px;
}

.login-form-simple small {
    color: #6c757d;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

body:not(.light-mode) .login-form-simple small {
    color: #9a9aaf;
}

body:not(.light-mode) .login-input::placeholder {
    color: #7a7a8a;
}

.login-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body:not(.light-mode) .login-input:focus {
    border-color: #667eea;
    background: #252545;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-input select,
.login-input[type="number"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 비밀번호 확인 상태 */
.password-status {
    font-size: 13px;
    margin-top: 4px;
    min-height: 18px;
}

.password-status.success {
    color: #28a745;
}

.password-status.error {
    color: #dc3545;
}

body:not(.light-mode) .password-status.success {
    color: #4caf50;
}

body:not(.light-mode) .password-status.error {
    color: #f5576c;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.login-submit-btn:hover {
    background: #357abd;
}

.login-submit-btn:active {
    background: #2e6ba8;
}

.login-link {
    text-align: center;
    margin-top: 24px;
}

.login-link p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

body:not(.light-mode) .login-link p {
    color: rgba(255, 255, 255, 0.7);
}

.signup-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 500;
}

.signup-link:hover {
    color: #5568d3;
}

/* 반응형 */
@media (max-width: 480px) {
    .login-form-wrapper {
        padding: 40px 0;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal[style*="display: flex"],
.modal[style*="display:flex"],
.modal.modal-show {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(145deg, #1f1f35 0%, #1a1a2e 100%);
    border-radius: 16px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0.8;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    background: rgba(102, 126, 234, 0.03);
}

.modal-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 28px 32px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 15px;
}

.modal-body p {
    margin: 0 0 16px 0;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body strong {
    color: #ffffff;
    font-weight: 600;
}

.modal-actions {
    padding: 24px 32px 32px;
    border-top: 1px solid rgba(102, 126, 234, 0.15);
    display: flex;
    justify-content: flex-end;
    background: rgba(102, 126, 234, 0.02);
}

/* 모달 내부 버튼만 스타일 적용 */
.modal .btn-primary {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    position: relative;
}

.modal .btn-primary:hover {
    background: #357abd;
    transform: none;
    box-shadow: none;
}

.modal .btn-primary:active {
    background: #2e6ba8;
    transform: none;
    box-shadow: none;
}

/* 라이트 모드 모달 스타일 */
body.light-mode .modal {
    background-color: rgba(0, 0, 0, 0.4);
}

body.light-mode .modal-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
}

body.light-mode .modal-content::before {
    background: linear-gradient(90deg, #4a90e2 0%, #667eea 100%);
}

body.light-mode .modal-header {
    border-bottom: 1px solid rgba(74, 144, 226, 0.15);
    background: rgba(74, 144, 226, 0.02);
}

body.light-mode .modal-header h3 {
    color: #212529;
}

body.light-mode .modal-body {
    color: #495057;
}

body.light-mode .modal-body strong {
    color: #212529;
}

body.light-mode .modal-actions {
    border-top: 1px solid rgba(74, 144, 226, 0.15);
    background: rgba(74, 144, 226, 0.01);
}

body.light-mode .modal .btn-primary {
    background: #4a90e2;
    box-shadow: none;
}

body.light-mode .modal .btn-primary:hover {
    background: #357abd;
    box-shadow: none;
}

body.light-mode .modal .btn-primary:active {
    background: #2e6ba8;
    box-shadow: none;
}

