/* login.css — 관리자 로그인 페이지 스타일 */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Animated gradient background */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(-45deg, #0f172a, #1e3a5f, #1a4a3a, #0f172a, #2d1b4e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle pattern overlay */
.bg-pattern {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.02) 0%, transparent 50%);
    z-index: 1;
}

/* Login wrapper */
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login card */
.login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 36px 36px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo-circle .material-symbols-rounded {
    font-size: 36px;
    color: #fff;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    margin-bottom: 4px;
}

.login-org {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Input group */
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.input-group:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-group:focus-within .input-icon {
    color: #3b82f6;
}

.input-group input {
    width: 100%;
    padding: 16px 48px 16px 46px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #fff;
    font-family: inherit;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-label {
    display: none;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.password-toggle .material-symbols-rounded {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.2s ease;
}

.password-toggle:hover .material-symbols-rounded {
    color: rgba(255, 255, 255, 0.6);
}

/* Error message */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 13px;
    animation: shakeIn 0.3s ease;
}

.error-message .material-symbols-rounded {
    font-size: 18px;
    color: #ef4444;
    flex-shrink: 0;
}

/* Login button */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shake animation */
@keyframes shakeIn {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

.shake {
    animation: shakeIn 0.4s ease;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.login-footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.login-footer .version {
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 16px;
    }
    .login-card {
        padding: 36px 24px 28px;
        border-radius: 20px;
    }
    .logo-circle {
        width: 60px;
        height: 60px;
    }
    .logo-circle .material-symbols-rounded {
        font-size: 30px;
    }
    .login-title {
        font-size: 24px;
    }
}
