/* =========================
   Beamy Login (matches reset_password styling)
========================= */

:root {
    --beamy: #7D85D0;
    --ink: #1f1f1f;
    --white70: rgba(255,255,255,0.70);
    --white35: rgba(255,255,255,0.35);
    --shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* Basic reset */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--ink);
    background: url("../../Images/registerBackground2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

/* Center the login area */
.PageBody {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

    /* Your <main> already has inline styles; this makes it match */
    .PageBody main {
        width: min(560px, 100%);
        background: transparent !important;
        border-radius: 18px;
        padding: 26px 22px !important;
        border: 1px solid var(--white35);
        box-shadow: var(--shadow);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Headline */
    .PageBody h2 {
        margin: 0 0 6px;
        color: #0f0f10;
        font-weight: 800;
        letter-spacing: .2px;
    }

/* Error message box (your HTML uses inline styles currently; this helps if you remove them later) */
.loginError {
    padding: 10px 12px;
    border: 1px solid rgba(180,0,0,.35);
    background: rgba(255,0,0,.08);
    border-radius: 12px;
    margin-bottom: 14px;
}

/* Labels */
.PageBody label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 700;
    color: rgba(0,0,0,0.78);
}

/* Inputs match reset_password */
.PageBody input[type="email"],
.PageBody input[type="password"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: auto;
    margin-top: 12px;
    margin-bottom: 12px;
    height: 45px;
    padding: 0 16px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 12px;
    font-size: 16px;
    background: var(--white70);
    outline: none;
    font-family: 'New Machiato', Arial, sans-serif;
}

    .PageBody input[type="email"]:focus,
    .PageBody input[type="password"]:focus {
        border-color: rgba(125,133,208,0.65);
        box-shadow: 0 0 0 4px rgba(125,133,208,0.20);
    }

/* Main login button */
.PageBody button[type="submit"] {
    margin-top: 16px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    cursor: pointer;
    background: var(--beamy);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(125,133,208,0.35);
}

    .PageBody button[type="submit"]:hover {
        filter: brightness(0.98);
    }

    .PageBody button[type="submit"]:active {
        transform: translateY(1px);
    }

/* Links row (Forgot + Create account) */
.loginLinks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Make links match the small pill style */
.forgotPwLink,
.createAccountLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(125,133,208,0.18);
    border: 1px solid rgba(125,133,208,0.45);
    color: var(--beamy);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    user-select: none;
}

    .forgotPwLink:hover,
    .forgotPwLink:focus,
    .forgotPwLink:active,
    .createAccountLink:hover,
    .createAccountLink:focus,
    .createAccountLink:active {
        text-decoration: none;
        filter: brightness(0.98);
    }

/* Footer */
.BeamyCoFooter {
    font-family: 'Times New Roman';
    color: var(--beamy);
}

/* Mobile polish */
@media (max-width: 480px) {
    .PageBody main {
        padding: 22px 16px !important;
    }

    .PageBody button[type="submit"] {
        padding: 13px 12px;
    }
}

/* =========================
   MOBILE CENTERING FIX
========================= */
@media (max-width: 768px) {
    html, body {
        height: 100%;
    }

    body {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .PageBody {
        min-height: 100vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 14px;
    }

        .PageBody main {
            margin: 0 auto !important;
        }
}
