/* Authentication Pages CSS */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f1f5f9;
    height: 100vh;
    overflow: hidden;
}

.main-container {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Side - Visuals */
.login-visual {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 4rem;
    overflow: hidden;
}

.visual-content {
    z-index: 2;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.visual-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.visual-content p {
    font-size: 1.25rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* Animated Background Elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #0ea5e9;
    top: -100px;
    left: -100px;
    animation: float 15s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -50px;
    right: -50px;
    animation: float 20s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #10b981;
    top: 40%;
    right: 20%;
    animation: float 12s infinite ease-in-out 2s;
}

/* Right Side - Form */
.login-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    animation: slideUp 0.8s ease-out;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-control:focus+i {
    color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    z-index: 10;
}

.back-link:hover {
    color: var(--primary);
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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