﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    background: #0b5394;
    height: 100vh;
}

/* BACK BUTTON (HOME) */
.back-nav {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999; /* always visible */
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
}

    .back-link i {
        margin-right: 6px;
    }

/* MAIN CONTAINER */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* CARD */
.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* TITLE */
.title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* FORM */
.form-group {
    margin-bottom: 15px;
}

.input-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

    .input-box i {
        color: #007bff;
        margin-right: 10px;
        font-size: 14px;
    }

/* INPUT */
.input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

/* FORGOT */
.forgot {
    text-align: right;
    font-size: 12px;
    margin-bottom: 15px;
}

    .forgot a {
        text-decoration: none;
        color: #007bff;
    }

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-login:hover {
        background: #0056b3;
    }

/* TRUST TEXT */
.trust {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

    .trust i {
        color: green;
        margin-right: 5px;
    }

/* BRAND */
.brand {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 600px) {

    body {
        padding: 10px;
        height: auto;
    }

    .container {
        height: auto;
        margin-top: 60px;
    }

    .card {
        width: 100%;
        padding: 20px;
        border-radius: 10px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 12px;
    }

    .input-box {
        padding: 8px;
    }

    .btn-login {
        padding: 10px;
        font-size: 15px;
    }

    /* BACK BUTTON MOBILE FIX */
    .back-nav {
        top: 10px;
        left: 10px;
    }

    .back-link {
        font-size: 13px;
        padding: 5px 8px;
    }
}

.validation-summary {
    background: #ffe6e6;
    color: #cc0000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}
.message-label {
    display: block; /* important */
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

/* Success Message */
.message-success {
    background: #e6ffed;
    color: #1a7f37;
}

/* Error Message */
.message-error {
    background: #ffe6e6;
    color: #cc0000;
}
