/* Современный дизайн страницы входа */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --login-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --login-background-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --container-bg: #ffffff;
    --text-color: #1A1F36;
    --text-secondary: #6B7280;
    --input-border: #E5E7EB;
    --input-focus: #3B82F6;
    --btn-bg: #3B82F6;
    --btn-hover: #2563EB;
    --footer-text: #9CA3AF;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
    --login-background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --container-bg: #1E293B;
    --text-color: #F1F5F9;
    --text-secondary: #94A3B8;
    --input-border: #475569;
    --input-focus: #60A5FA;
    --btn-bg: #60A5FA;
    --btn-hover: #3B82F6;
    --footer-text: #64748B;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--login-background);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: background 0.5s ease;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.login-container {
    background-color: var(--container-bg);
    padding: 48px 40px;
    border-radius: 24px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    box-sizing: border-box;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.form-group {
    margin-bottom: 24px;
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--container-bg);
    color: var(--text-color);
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    border-color: var(--input-focus);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    pointer-events: none;
}

.form-group input:focus + i {
    color: var(--input-focus);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--btn-bg) 0%, var(--btn-hover) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(59, 130, 246, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.footer-text {
    margin-top: 24px;
    color: var(--footer-text);
    font-size: 13px;
}

.footer-text a {
    color: var(--btn-bg);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.footer-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--btn-bg);
    transition: width 0.2s ease;
}

.footer-text a:hover::after {
    width: 100%;
}

.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(15deg);
}