﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.08);
    padding: 15px;
    overflow-y: auto;
}

.login-box {
    width: 500px;
    max-width: 100%;
    padding: 36px 40px 40px;
    margin-top: -30px;
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.55);
    border-top: 5px solid #F57C00;
    box-shadow: 0 20px 45px rgba(0,0,0,.20);
}

/* ---- logo + titles (centered) ---- */

.logo-section-center {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    display: block;
    width: 100px;
    height: auto;
    margin: 0 auto 12px;
}

.login-title {
    color: #003b8e;
    font-size: 29px;
    font-weight: 700;
    margin: 8px 0;
}

.login-subtitle {
    color: #333;
    font-size: 19px;
    font-weight: 700;
    margin: 0;
}

/* ---- inputs ---- */

.form-control {
    width: 100%;
    padding: 15px;
    margin-bottom: 18px;
    border-radius: 12px;
    border: 1px solid #D8E2F1;
    background: rgba(255,255,255,.95);
    color: #333;
    outline: none;
    transition: .3s;
    font-size: 16px;
}

    .form-control::placeholder {
        color: #888;
    }

    .form-control:focus {
        border-color: #1565C0;
        box-shadow: 0 0 0 4px rgba(21,101,192,.15);
    }

/* ---- captcha ---- */

.captcha-section {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
}

.captcha-img {
    width: calc(100% - 58px);
    height: 52px;
    background: #fff;
    border: 1px solid #D8E2F1;
    border-right: none;
    border-radius: 12px 0 0 12px;
    object-fit: fill;
    display: block;
}

.refresh-btn {
    width: 58px;
    height: 52px;
    border: 1px solid #D8E2F1;
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: #0d6efd;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
}

    .refresh-btn:hover {
        background: #0D47A1;
    }

/* ---- login button ---- */

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg,#FF6F00,#F57C00);
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .5px;
    cursor: pointer;
    transition: .3s;
}

    .login-btn:hover {
        background: linear-gradient(90deg,#E65100,#EF6C00);
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(230,81,0,.35);
    }

.error-msg {
    display: none;
    width: 100%;
    margin: 0 0 15px 0;
    padding: 10px 12px;
    background: #fdeaea;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
    border-left: 4px solid #d32f2f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 576px) {
    .login-box {
        padding: 28px 20px 30px;
        margin-top: 0;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 16px;
    }
}
