.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #070A12 0%, #0D1220 40%, #111833 100%);
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    will-change: transform;
}

.orb-1 {
    width: 500px; height: 500px;
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    top: -200px; left: -200px;
    animation: float1 25s ease-in-out infinite;
}
.orb-2 {
    width: 400px; height: 400px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    bottom: -150px; right: -150px;
    animation: float2 30s ease-in-out infinite;
}
.orb-3 {
    width: 350px; height: 350px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    top: 50%; left: 50%;
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(50px, -80px) scale(1.15) rotate(90deg); }
    50% { transform: translate(-30px, 60px) scale(0.9) rotate(180deg); }
    75% { transform: translate(70px, 30px) scale(1.05) rotate(270deg); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    30% { transform: translate(-60px, 50px) scale(1.1) rotate(-90deg); }
    60% { transform: translate(40px, -40px) scale(0.95) rotate(-180deg); }
    90% { transform: translate(-50px, -60px) scale(1.08) rotate(-270deg); }
}
@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    20% { transform: translate(calc(-50% + 80px), calc(-50% - 70px)) scale(1.2) rotate(72deg); }
    40% { transform: translate(calc(-50% - 90px), calc(-50% + 40px)) scale(0.85) rotate(144deg); }
    60% { transform: translate(calc(-50% + 60px), calc(-50% + 80px)) scale(1.1) rotate(216deg); }
    80% { transform: translate(calc(-50% - 70px), calc(-50% - 50px)) scale(0.95) rotate(288deg); }
}

.login-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(13, 18, 32, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 80px rgba(79, 70, 229, 0.08);
    padding: 32px 32px 28px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-image { width: 180px; height: auto; object-fit: contain; }

.logo-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
    padding: 4px 12px;
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 20px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-dim);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-group label svg { color: var(--primary-light); }

.login-form .form-group input {
    padding: 13px 16px;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: rgba(7, 10, 18, 0.5);
    color: var(--text-strong);
}

.login-form .form-group input::placeholder { color: rgba(148, 163, 184, 0.5); }

.login-form .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: rgba(7, 10, 18, 0.7);
}

.checkbox-group { flex-direction: row; align-items: center; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-dim);
    font-size: 13px;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.login-form .btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    margin-top: 4px;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.55);
}

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

.message {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
    font-weight: 500;
    display: none;
    margin-top: 4px;
}

.message.show { display: block; }
.message.success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.message.error   { background: rgba(239, 68, 68, 0.1);  color: var(--error);   border: 1px solid rgba(239, 68, 68, 0.3); }
.message.info    { background: rgba(79, 70, 229, 0.1);  color: var(--primary-light); border: 1px solid rgba(79, 70, 229, 0.3); }
