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

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    /* overflow: hidden; */
    color: #e2e8f0;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.master-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.design-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.design-content {
    text-align: center;
    color: white;
    z-index: 10;
    position: relative;
}

.brand-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.brand-content p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-shapes::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    animation: shimmer 8s ease-in-out infinite;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation: float 8s ease-in-out infinite, pulse 4s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 70%, transparent 100%);
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse, pulse 6s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 70%, transparent 100%);
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 25%;
    animation: float 7s ease-in-out infinite, pulse 5s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.03) 70%, transparent 100%);
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    left: 15%;
    animation: float 9s ease-in-out infinite reverse, pulse 7s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 70%, transparent 100%);
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 40%;
    animation: float 6s ease-in-out infinite, pulse 8s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.01) 70%, transparent 100%);
}

.shape-6 {
    width: 60px;
    height: 60px;
    top: 35%;
    left: 70%;
    animation: float 11s ease-in-out infinite reverse, pulse 9s ease-in-out infinite;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.01) 70%, transparent 100%);
}

.login-card {
    flex: 1;
    display: flex;
    max-width: 450px;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

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

.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.back-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.back-btn svg {
    transition: transform 0.3s ease;
}

.back-btn:hover svg {
    transform: translateX(-2px);
}

.desktop-header {
    color: #f1f5f9;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.mobile-header {
    display: none;
}

.mobile-header .logo h2 {
    color: #3b82f6;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.mobile-header h1 {
    color: #f1f5f9;
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mobile-header p {
    color: #94a3b8;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 1.8rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.2rem;
    border: 2px solid #475569;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.input-wrapper input:focus::placeholder {
    transform: translateY(-2.8rem) scale(0.85);
    color: #3b82f6;
    opacity: 1;
}

.input-wrapper input:not(:placeholder-shown)::placeholder {
    transform: translateY(-2.8rem) scale(0.85);
    color: #3b82f6;
    opacity: 1;
}

.input-wrapper::before {
    content: attr(data-placeholder);
    position: absolute;
    left: 3.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.input-wrapper.focused::before,
.input-wrapper.filled::before {
    top: 0;
    left: 2.5rem;
    transform: translateY(-50%) scale(0.85);
    color: #3b82f6;
    background: linear-gradient(to right, rgb(51 65 85) 0%, rgb(51 65 85) 100%);
    padding: 0 0.3rem;
    border-radius: 3px;
}

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

.input-wrapper input:focus~.input-icon {
    color: #3b82f6;
}

.password-toggle {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3b82f6;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #cbd5e1;
}

.checkbox-container input {
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #60a5fa;
}

/* Buttons */
.login-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #475569;
}

.divider span {
    padding: 0 1rem;
}

.google-btn {
    width: 100%;
    padding: 1.2rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid #475569;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    color: #e2e8f0;
}

.google-btn:hover {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}



/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(-15px) rotate(240deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    to {
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.3);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .master-card {
        height: auto;
        min-height: 600px;
        max-width: 360px;
    }

    .design-side {
        display: none;
    }

    .login-card {
        flex: none;
        width: 100%;
        background: #0f172a;
        padding: 2rem 1.5rem;
    }

    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .back-btn {
        display: none;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 0;
    }

    .master-card {
        border-radius: 0;
    }

    .login-container {
        align-items: unset;
    }
}