:root {
    --brand-primary: #1a237e;
    --brand-accent: #ffd600;
    --brand-dark: #121858;
    --brand-light: #ffffff;
    --text-main: #263238;
    --text-muted: #546e7a;
    --bg-surface: #f4f7f9;
    --border-color: #e0e0e0;
    --success: #00c853;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Background Animated Particles Simulation with CSS */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(26, 35, 126, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 214, 0, 0.05) 0%, transparent 40%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: var(--brand-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side: Brand Panel */
.brand-panel {
    flex: 1.2;
    background: var(--brand-primary);
    background-image: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    color: white;
}

.brand-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
    pointer-events: none;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo .dot {
    width: 12px;
    height: 12px;
    background: var(--brand-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-accent);
}

.brand-content h2 {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.brand-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.brand-footer {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Right Side: Form Panel */
.form-panel {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
}

.input-container {
    margin-bottom: 25px;
    position: relative;
}

.input-container label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.input-field {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.input-field:focus {
    border-bottom-color: var(--brand-primary);
}

.input-field:focus~.input-bar {
    width: 100%;
}

.input-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: var(--transition);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
}

.forgot-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Submit Button Custom Style */
.submit-btn {
    width: 100%;
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 35, 126, 0.3);
}

.submit-btn .arrow {
    transition: var(--transition);
}

.submit-btn:hover .arrow {
    transform: translateX(5px);
}

/* Loading State */
.submit-btn.loading {
    background: var(--text-muted);
    pointer-events: none;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

.submit-btn.loading .loader {
    display: block;
}

.submit-btn.loading .btn-text,
.submit-btn.loading .arrow {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 500px;
    }

    .brand-panel {
        padding: 40px;
        min-height: 250px;
    }

    .form-panel {
        padding: 40px;
    }
}