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

body, html {
    height: 100%;
    font-family: 'Inter', sans-serif;
}

.login-container {
    display: flex;
    height: 100vh;
}

/* LEFT SIDE */
.login-left {
    width: 50%;
    background: linear-gradient(135deg, #405365 0%, #263746 60%, #1e2c38 100%); /* Slate Blue to Deep Slate gradient */
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 60px;
}

/* Grid overlay */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    z-index: 1;
}

/* Dumbbell background */
.bg-dumbbell {
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 80%;
    opacity: 0.05;
    z-index: 1;
    transform: rotate(-20deg);
}

.bg-dumbbell svg {
    width: 100%;
    height: auto;
}

.left-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-box {
    width: 64px;
    height: 64px;
    background-color: rgba(255,255,255,0.2); 
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.logo-inner {
    background-color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #405365;
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.brand-subtitle {
    color: #C69B4A; /* Warm Gold accent */
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 60px;
}

.feature-list {
    list-style: none;
    margin-bottom: auto;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1rem;
    color: #e5e7eb;
}

.icon-box {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #C69B4A;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    margin-top: auto;
}

/* RIGHT SIDE */
.login-right {
    width: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.wave {
    display: inline-block;
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
    margin-left: 8px;
}

@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
    10% { transform: rotate(14.0deg) }  
    20% { transform: rotate(-8.0deg) }
    30% { transform: rotate(14.0deg) }
    40% { transform: rotate(-4.0deg) }
    50% { transform: rotate(10.0deg) }
    60% { transform: rotate( 0.0deg) }  
    100% { transform: rotate( 0.0deg) }
}

.subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #9ca3af;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.input-wrapper input:focus {
    border-color: #405365;
    box-shadow: 0 0 0 3px rgba(64, 83, 101, 0.1);
}

.input-wrapper input::placeholder {
    color: #d1d5db;
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #4b5563;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #405365;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 25px;
}
 
.btn-submit:hover {
    background-color: #263746;
}
.btn-submit:active {
    transform: translateY(1px);
}
 
.create-account {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}
 
.create-account a {
    color: #405365;
    font-weight: 600;
    text-decoration: none;
}

.create-account a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

/* Responsive App-like Design for Mobile View */
@media (max-width: 992px) {
    body {
        background: linear-gradient(135deg, #405365 0%, #263746 60%, #1e2c38 100%);
    }

    .login-container {
        flex-direction: column;
        background: transparent;
        justify-content: center;
        align-items: center;
        padding: 20px;
        min-height: 100vh;
    }
    
    .login-left {
        display: none; /* Hide branding sidebar to fit form directly as mobile app */
    }
    
    .login-right {
        width: 100%;
        max-width: 440px;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        padding: 20px 10px;
    }

    .form-container {
        padding: 15px;
    }

    .form-container h2 {
        color: #ffffff; /* White title text for dark theme */
    }

    .subtitle {
        color: #9ca3af;
    }

    .form-group label {
        color: #9ca3af;
    }

    .input-wrapper input {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .input-wrapper input:focus {
        border-color: #405365;
        box-shadow: 0 0 0 3px rgba(64, 83, 101, 0.25);
        background: rgba(255, 255, 255, 0.08);
    }

    .input-wrapper input::placeholder {
        color: rgba(255, 255, 255, 0.35);
    }

    .input-icon, .toggle-password {
        color: rgba(255, 255, 255, 0.5);
    }

    .toggle-password:hover {
        color: #ffffff;
    }

    .create-account {
        color: #9ca3af;
    }
}
