:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --bg-body: #020617;
    --bg-card: #0f172a;
    --bg-input: #1e293b;
    --border-input: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
}

/* Animated Premium Border Wrap */
@keyframes gradientSweep {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.login-outer {
    padding: 1.5px;
    border-radius: 26px;
    background: linear-gradient(120deg, var(--primary), var(--secondary), #8b5cf6, var(--primary));
    background-size: 300% 300%;
    animation: gradientSweep 8s ease infinite;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    margin: 1rem;
}

.login-wrapper {
    display: flex;
    width: 950px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 25px;
    overflow: hidden;
}

/* Left Side: Branding/Visuals */
.login-brand {
    flex: 1.25;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Abstract Premium Geometric Shapes */
.login-brand::before,
.login-brand::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    transform: rotate(45deg);
}

.login-brand::before {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
}

.login-brand::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.logo-box {
    background: #ffffff;
    width: 85px;
    height: 85px;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Logo animation removed as requested */
    margin-bottom: 2.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.brand-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.brand-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 95%;
}

.brand-footer {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Right Side: Form */
.login-form-container {
    flex: 1;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Fixed Icons sizes and placement */
.form-group i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
    pointer-events: none;
}

.form-group:focus-within i {
    color: var(--primary);
}

.input-control {
    width: 100%;
    padding: 1.15rem 1.15rem 1.15rem 3.25rem;
    /* Space for icon */
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-control::placeholder {
    color: #64748b;
}

.input-control:focus {
    background: #020617;
    /* Darker on focus for contrast */
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 1.15rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-submit i {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

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

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .login-outer {
        width: 100%;
        max-width: 480px;
    }

    .login-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .login-brand {
        padding: 2.5rem;
    }

    .brand-text h1 {
        font-size: 2.2rem;
    }

    .login-form-container {
        padding: 3rem 2.5rem;
    }
}
