
body {
    font-family: Arial, sans-serif;
    background: url('') center center / cover no-repeat;

    margin: 0;
    padding: 0;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 350px;

    margin: 35px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.95);

    border-radius: 12px;

    border-top: 5px solid red;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);

    text-align: center;
}

.login-card .logo {
    width: 150px;

    margin-bottom: 15px;
}

.login-card h2 {
    font-size: 24px;

    color: #01389e;

    margin: 0 0 5px;
}


.login-card .subtitle {
    font-size: 14px;

    color: #5A5A5A;

    margin: 0 0 20px;
}

.input-box {
    display: flex;
    align-items: center;

    width: 100%;
    height: 46px;

    box-sizing: border-box;

    border: 1px solid #ddd;

    border-radius: 14px;

    padding: 0 15px;

    margin-bottom: 18px;

    background: #fff;

    transition: border-color 0.2s ease;
}


.input-box:focus-within {
    border-color: #01389e;
}


.input-box > i {
    flex-shrink: 0;

    font-size: 16px;

    color: #777;
}


.input-box input {
    width: 100%;

    min-width: 0;

    border: none;
    outline: none;

    margin-left: 12px;

    font-size: 16px;

    background: transparent;
}


.toggle-password {
    display: none;

    flex-shrink: 0;

    cursor: pointer;

    margin-left: 10px;
}

.forgot {
    display: block;

    text-align: left;

    font-size: 14px;

    color: #0057ff;

    text-decoration: none;

    margin-bottom: 22px;
}


.forgot:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;

    padding: 12px;

    background: #01389e;

    color: #fff;

    border: none;

    border-radius: 5px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}


.login-button:hover {
    background: #1447a7;

    transform: translateY(-1px);
}


.login-button.loading {
    pointer-events: none;

    opacity: 0.8;
}


.error-message {
    color: red;

    font-size: 14px;

    margin: 0 0 15px;
}

.register-link {
    margin-top: 18px;

    text-align: center;

    font-size: 14px;
}


.register-link span {
    color: #777;
}


.register-link a {
    color: #d94420;

    font-weight: 600;

    text-decoration: none;

    margin-left: 4px;
}


.register-link a:hover {
    text-decoration: underline;
}


.success-message {
    padding: 10px 12px;

    margin: 0 0 15px;

    border-radius: 6px;

    font-size: 14px;

    text-align: center;

    background: #e8f5e9;

    color: #2e7d32;
}


.login-loading {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: #fff;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 99999;
}

.loading-content {
    width: 360px;

    padding: 30px;

    box-sizing: border-box;

    text-align: center;
}

.loading-logo {
    display: block;

    width: 120px;
    height: 120px;

    object-fit: contain;

    margin: 0 auto 20px;
}


.loading-title {
    margin: 0;

    color: #01389e;

    font-size: 25px;

    font-weight: 600;
}


.loading-text {
    margin: 8px 0 22px;

    color: #777;

    font-size: 14px;
}


.loading-spinner {
    width: 36px;
    height: 36px;

    margin: 0 auto;

    border: 3px solid #e5e7eb;

    border-top-color: #01389e;

    border-radius: 50%;

    animation: loginSpin 0.8s linear infinite;
}


@keyframes loginSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


@media (max-width: 480px) {

    .login-card {
        width: calc(100% - 40px);

        margin: 20px;

        padding: 25px;
    }


    .login-card .logo {
        width: 130px;
    }


    .loading-content {
        width: 280px;

        padding: 20px;
    }


    .loading-logo {
        width: 105px;
        height: 105px;

        margin-bottom: 18px;
    }


    .loading-title {
        font-size: 21px;
    }


    .loading-text {
        font-size: 13px;
    }


    .loading-spinner {
        width: 30px;
        height: 30px;
    }

}

