/* ============================================================
   PARISH PILOT
   Login Page
   ============================================================ */


/* ------------------------------------------------------------
   RESET
   ------------------------------------------------------------ */

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #1d2b38;

    background:
        radial-gradient(
            circle at top,
            #164d79 0%,
            #0b3153 30%,
            #061f36 60%,
            #041523 100%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-page {
    width: 100%;
    max-width: 470px;

    margin: auto;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */

.login-card {
    width: 100%;

    background: #ffffff;

    border-radius: 16px;

    padding: 32px 34px 36px;

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35);
}


/* ============================================================
   PARISH PILOT LOGO
   ============================================================ */

.login-brand {
    width: 100%;

    text-align: center;

    margin:
        0
        auto
        30px;
}

.login-logo {
    display: block;

    width: 100%;
    max-width: 390px;

    height: auto;

    margin: 0 auto;

    object-fit: contain;
}


/* ============================================================
   FORM LABELS
   ============================================================ */

.form-label {
    display: block;

    margin-bottom: 7px;

    color: #263746;

    font-size: 14px;
    font-weight: 600;
}


/* ============================================================
   FORM CONTROLS
   ============================================================ */

.form-control {
    display: block;

    width: 100%;

    min-height: 48px;

    padding:
        11px
        14px;

    font-size: 15px;

    color: #172433;

    background: #ffffff;

    border:
        1px solid #c9d3dc;

    border-radius: 8px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-control:hover {
    border-color: #94a8b9;
}

.form-control:focus {
    border-color: #0788d1;

    box-shadow:
        0 0 0 4px
        rgba(7, 136, 209, 0.15);

    outline: none;
}


/* ============================================================
   LOGIN BUTTON
   ============================================================ */

.login-button {
    display: block;

    width: 100%;

    min-height: 48px;

    margin-top: 8px;

    padding:
        11px
        20px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            #07558f 0%,
            #078bd0 100%
        );

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(7, 85, 143, 0.30);

    filter: brightness(1.05);
}

.login-button:active {
    transform: translateY(0);

    box-shadow: none;
}

.login-button:focus {
    outline: none;

    box-shadow:
        0 0 0 4px
        rgba(7, 136, 209, 0.25);
}


/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    margin-bottom: 20px;

    padding:
        12px
        14px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.45;
}

.alert-danger {
    color: #842029;

    background: #f8d7da;

    border:
        1px solid #f5c2c7;
}

.alert-info {
    color: #055160;

    background: #cff4fc;

    border:
        1px solid #b6effb;
}

.alert-success {
    color: #0f5132;

    background: #d1e7dd;

    border:
        1px solid #badbcc;
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    margin-top: 22px;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 12px;

    letter-spacing: 0.5px;
}


/* ============================================================
   AUTOFILL
   Keep browser autofill looking consistent
   ============================================================ */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #172433;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 768px) {

    body {
        padding:
            24px
            18px;
    }

    .login-page {
        max-width: 450px;
    }

    .login-card {
        padding:
            28px
            28px
            32px;
    }

    .login-logo {
        max-width: 360px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {

    body {
        padding:
            16px
            12px;
    }

    .login-card {
        padding:
            24px
            20px
            28px;

        border-radius: 12px;
    }

    .login-brand {
        margin-bottom: 24px;
    }

    .login-logo {
        max-width: 310px;
    }

    .form-control {
        min-height: 46px;
    }

    .login-button {
        min-height: 46px;
    }

    .login-footer {
        margin-top: 18px;

        font-size: 11px;
    }
}
