/* login.css */

/* --- Floating Home Button (The "Best" Back Button) --- */
.home-fab {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--accent, #007bff);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
     transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-fab:hover {
    transform: scale(1.1) translateY(-5px);
    background: #fff;
    color: var(--accent, #007bff);
}

.home-fab i {
    font-size: 1.4rem;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin-top: 70px;
}

/* --- Aside Branding --- */
.login-aside {
    flex: 1.2;
    background: #050505;
    background-image: url('imgg.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    padding: 60px;
    overflow: hidden;
}

.aside-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, #050505, rgba(5, 5, 5, 0.4));
    z-index: 1;
}

.aside-content {
    position: relative;
    z-index: 2;
}

.aside-text h1 {
    font-size: 5rem;
    color: #fff;
    line-height: 0.9;
    margin-top: 20px;
}

.aside-text h1 span {
    color: var(--accent, #007bff);
}

.subtitle {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

/* --- Form Area --- */
.login-form-area {
    flex: 0.8;
    background: var(--bg, #f4f7f6);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-dim, #666);
    margin-bottom: 35px;
}

/* --- Inputs --- */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--text-dim, #666);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border-radius: 12px;
    border: 1px solid var(--border, #ddd);
    background: var(--surface, #fff);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent, #007bff);
    box-shadow: 0 0 15px var(--accent-glow, rgba(0,123,255,0.1));
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
}

.forgot-pass {
    color: var(--accent, #007bff);
    text-decoration: none;
    font-weight: 700;
}

.btn.primary.full-width {
    width: 100%;
    padding: 18px;
    border-radius: 150px;
    border: none;
    background: var(--accent, #007bff);
    color: white;
    font-weight: 800;
    box-shadow: none!important;
    cursor: pointer;
    font-family: 'Gemunu Libre', sans-serif;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.btn.primary.full-width:hover {
    opacity: 0.9;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-dim, #666);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--text, #111);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--accent, #007bff);
} 

/* ==========================================
   FULL MOBILE RESPONSIVE & CENTERING
   ========================================== */

@media (max-width: 768px) {
    .home-fab {
        top: 100px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .home-fab i { font-size: 1.1rem; }

    .login-container {
        flex-direction: column;
        display: block; /* Allows natural scrolling */
        margin-top: 50px;
    }

    /* 1. Center the Aside Branding */
    .login-aside {
        flex: none;
        height: 140px; /* Slimmer for mobile */
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center; /* Centers horizontal */
        text-align: center; /* Centers text */
    }

    .aside-text h1 {
        font-size: 2.5rem;
        margin-top: 5px;
    }

    .subtitle {
        font-size: 0.7rem;
        display: block;
        margin-bottom: 5px;
    }

    /* 2. Center the Form Area & Text */
    .login-form-area {
        padding: 40px 20px;
        display: flex;
        justify-content: center; /* Centers the form box */
        background: #fff;
    }

    .form-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    /* THIS IS THE SPECIFIC FIX FOR YOUR TEXT */
    .form-header {
        text-align: center; /* Centers "Login to Account" and subtitle */
    }

    .form-header h2 {
        font-size: 2rem;
        margin-bottom: 1px;
    }

    .form-header p {
        font-size: 0.85rem;
        margin-bottom: 30px;
        padding: 0 10px; /* Prevents text hitting edges */
    }

    /* 3. Input Adjustments */
    .input-wrapper input {
        padding: 14px 15px 14px 50px;
        font-size: 16px; /* Best for mobile UX */
    }

    .form-options {
        font-size: 0.8rem;
    }

    .btn.primary.full-width {
        padding: 16px;
        font-size: 1rem;
        margin-top: 10px;
    }

    .form-footer {
        font-size: 0.85rem;
    }
}

/* Landscape Mode Fix */
@media (max-height: 450px) and (orientation: landscape) {
    .login-aside { display: none; }
    .login-form-area { padding: 20px; }
}


.register-only {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}