/**
 * EMLearn – Home Page Styles
 *
 * Styles for the [emlearn_home] shortcode landing page.
 * Enqueued conditionally when the shortcode is present.
 *
 * @package EMLearn
 */

/* ====================================================================
   Full-bleed container
   ==================================================================== */

.emlearn-home {
    background-color: #2a2a3a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

/* ====================================================================
   Panels wrapper
   ==================================================================== */

.emlearn-home__panels {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ====================================================================
   Top row: about panel + right area (CTA + login)
   ==================================================================== */

.emlearn-home__top {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.emlearn-home__about {
    flex: 1 1 48%;
}

.emlearn-home__right {
    flex: 1 1 52%;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.emlearn-home__cta {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.emlearn-home__login {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

/* ====================================================================
   Shared panel appearance
   ==================================================================== */

.emlearn-home__panel {
    background: rgba(200, 200, 210, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 4px;
    padding: 28px 30px;
    color: #1a1a1a;
    font-family: Calibri, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.emlearn-home__panel p {
    margin: 0 0 0.9em;
}

.emlearn-home__panel p:last-child {
    margin-bottom: 0;
}

/* ====================================================================
   RTO footnote
   ==================================================================== */

.emlearn-home__rto {
    font-size: 13.5px;
    margin-top: auto;
    padding-top: 8px;
}

/* ====================================================================
   Bottom welcome panel
   ==================================================================== */

.emlearn-home__welcome {
    max-width: 680px;
    margin: 0 auto;
}

/* ====================================================================
   Login form
   ==================================================================== */

.emlearn-home__login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emlearn-home__login-form input[type="text"],
.emlearn-home__login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #999;
    border-radius: 3px;
    font-family: Calibri, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
}

.emlearn-home__login-form input:focus {
    outline: none;
    border-color: #1a1a4e;
    box-shadow: 0 0 0 2px rgba(26, 26, 78, 0.12);
}

.emlearn-home__forgot {
    font-size: 13px;
    color: #1a1a4e;
    text-decoration: underline;
    text-align: left;
    margin-top: -4px;
}

.emlearn-home__forgot:hover {
    color: #0073aa;
}

.emlearn-home__submit {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #1a1a4e;
    border: 2px solid #1a1a4e;
    border-radius: 3px;
    font-family: Calibri, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 4px;
}

.emlearn-home__submit:hover {
    background: #1a1a4e;
    color: #fff;
}

/* ====================================================================
   Login error message
   ==================================================================== */

.emlearn-home__error {
    background: rgba(200, 40, 40, 0.12);
    border: 1px solid rgba(200, 40, 40, 0.3);
    color: #8b1a1a;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ====================================================================
   Responsive
   ==================================================================== */

@media (max-width: 960px) {
    .emlearn-home__top {
        flex-direction: column;
    }

    .emlearn-home__right {
        flex-direction: row;
    }

    .emlearn-home__welcome {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .emlearn-home {
        padding: 24px 16px;
    }

    .emlearn-home__right {
        flex-direction: column;
    }

    .emlearn-home__panel {
        padding: 22px 20px;
    }
}
