﻿html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    font-family: Tahoma, Arial, sans-serif;
    background: #f4f6fa;
}

body {
    overflow: hidden;
}

.background-logo {
    position: fixed;
    inset: 0;
    background-image: url('/images/coast-guard-logo.png.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(78vw, 900px);
    opacity: 0.06;
    filter: grayscale(15%);
    pointer-events: none;
}

.login-box {
    position: relative;
    z-index: 2;
    width: min(92%, 430px);
    margin: 50vh auto 0;
    transform: translateY(-50%);
    padding: 34px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dfe5ee;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(20, 34, 55, 0.15);
    backdrop-filter: blur(4px);
}

.logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-box h3 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.login-box h5 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #27364b;
}

.login-box p {
    margin-bottom: 22px;
    color: #6b7280;
}

.login-box hr {
    margin-bottom: 24px;
    border-color: #e3e8ef;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    text-align: right;
    border: 1px solid #cfd7e3;
    background-color: #ffffff;
    color: #1f2937;
}

    .form-control:focus {
        border-color: #1f3a5f;
        box-shadow: 0 0 0 0.2rem rgba(31, 58, 95, 0.12);
    }


/* =========================================
   PASSWORD FIELD + EYE BUTTON
========================================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

    .password-wrapper .form-control {
        width: 100%;
        padding-left: 52px;
        padding-right: 12px;
    }

.password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .password-toggle:hover {
        background-color: #eef2f7;
        color: #1f3a5f;
    }

    .password-toggle:focus {
        outline: none;
        box-shadow: 0 0 0 0.15rem rgba(31, 58, 95, 0.12);
    }

    .password-toggle i {
        pointer-events: none;
    }


/* =========================================
   LOGIN BUTTON
========================================= */

.btn-primary {
    height: 50px;
    border-radius: 10px;
    border: none;
    background-color: #1f2d42;
    font-weight: 700;
}

    .btn-primary:hover {
        background-color: #142033;
    }


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    body {
        overflow: auto;
    }

    .background-logo {
        background-size: 135vw;
    }

    .login-box {
        margin: 30px auto;
        transform: none;
        padding: 26px 20px;
    }
}
