/* 로그인 페이지 스타일 */
:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary-color: #1E293B;
    --accent-color: #F59E0B;
    --text-color: #334155;
    --light-color: #F8FAFC;
    --danger-color: #EF4444;
    --success-color: #10B981;
    --border-radius: 0.5rem;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.login-page {
    font-family: 'Noto Sans KR', sans-serif;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background-color: var(--light-color);
    color: var(--text-color);
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://source.unsplash.com/random/1920x1080/?architecture,building');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: -1;
}

.login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 500px;
    perspective: 1000px;
}

.login-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    animation: cardAppear 0.5s ease-out forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.login-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
    animation: logoReveal 1.2s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.login-subtitle {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 0;
}

.login-form {
    padding: 2rem;
    position: relative;
}

/* 로딩 오버레이 스타일 */
.login-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: var(--border-radius);
}

.login-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

.login-loading-overlay p {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group.form-check {
    margin-top: -0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #E2E8F0;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.form-group.focus label {
    color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
}

.btn-block {
    display: block;
    width: 100%;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: #64748B;
    font-weight: normal;
}

.text-danger {
    color: var(--danger-color);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

.login-footer {
    padding: 1rem 2rem;
    text-align: center;
    background-color: #F1F5F9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.login-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748B;
}

.login-footer-main {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.login-footer-main a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.login-footer-main a:hover {
    color: white;
    text-decoration: underline;
}

/* 반응형 스타일 */
@media (max-width: 576px) {
    .login-card {
        border-radius: 0;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-header {
        padding: 1rem;
    }
    
    .login-form {
        padding: 1.5rem;
    }
}

/* 애니메이션 */
.form-control, .btn {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group:nth-child(1) .form-control {
    animation-delay: 0.2s;
}

.form-group:nth-child(2) .form-control {
    animation-delay: 0.3s;
}

.form-group:nth-child(3) {
    animation-delay: 0.4s;
}

.form-group:nth-child(4) .btn {
    animation-delay: 0.5s;
}

.form-group:nth-child(5) a {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}
