/**
 * INNOLYZER 로그인 페이지 스타일
 *
 * @date 2026-03-04
 * @link https://innolyzer.innored.co.kr/login
 */

/* ============================================================
   기본 설정
   ============================================================ */

:root {
    /* Stratos 톤 — Seed / Primary / Secondary / Tertiary */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-secondary: #0d9488;

    --color-success: #0d9488;
    --color-warning: #c27803;
    --color-error: #ba1a1a;

    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: rgba(15, 23, 42, 0.12);
    --color-gray-300: rgba(15, 23, 42, 0.18);
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;

    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #2563eb 100%);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Manrope', var(--font-family);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.08);

    /* 애니메이션 */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   로그인 레이아웃
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   브랜딩 영역 (왼쪽)
   ============================================================ */

.login-branding {
    flex: 1;
    background: var(--gradient-dark);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, 5%) scale(1.1); }
}

.branding-content {
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 56px;
    height: 56px;
    color: var(--color-primary-light);
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.branding-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 400px;
    line-height: 1.4;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.branding-footer {
    position: relative;
    z-index: 1;
}

.branding-footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   로그인 폼 영역 (오른쪽)
   ============================================================ */

.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--color-gray-50);
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1rem;
    color: var(--color-gray-500);
}

/* ============================================================
   알림 메시지
   ============================================================ */

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

.alert.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================================
   폼 스타일
   ============================================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--color-gray-400);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-gray-900);
    background: transparent;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.375rem;
    outline: none;
    transition: var(--transition-normal);
}

.input-wrapper input::placeholder {
    color: var(--color-gray-400);
}

.input-wrapper input:hover {
    border-color: var(--color-gray-300);
}

.input-wrapper input:focus {
    border-color: var(--color-primary);
    background: var(--color-gray-50);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--color-primary);
}

/* 비밀번호 토글 버튼 */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-gray-600);
}

/* ============================================================
   버튼 스타일
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #002a7a 0%, #0d0080 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

/* ============================================================
   폼 푸터
   ============================================================ */

.form-footer {
    text-align: center;
    margin-top: 2rem;
    border-top: none;
    padding: 1.75rem 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    background: var(--color-gray-100);
    border-radius: 0.75rem;
}

.form-footer p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.form-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.form-footer a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ============================================================
   반응형 디자인
   ============================================================ */

@media (max-width: 1024px) {
    .login-branding {
        display: none;
    }

    .login-form-section {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .input-wrapper input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 0.9375rem;
    }
}
