﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Segoe UI", system-ui, sans-serif;
    overflow: auto;
}

@media (min-width: 901px) {
    html, body {
        overflow: hidden;
    }
}

body {
    background: url('/Assets/Images/THR.jpg') no-repeat left center fixed;
    background-size: cover;
    position: relative;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,5,8,0.15);
    pointer-events: none;
}

/* LOGIN WRAPPER */
.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 140px 20px 20px;
}

@media (max-width: 1100px) and (min-width: 901px) {
    .login-wrapper {
        padding-right: 60px;
    }
}

/* LOGIN CARD */
.login-card {
    width: 90%;
    max-width: 420px;
    padding: 38px 42px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.10) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    border-top: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 25px 55px rgba(0,0,0,0.42), inset 0 0 22px rgba(255,255,255,0.05);
    animation: fadeUp 0.85s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 35px 70px rgba(0,0,0,0.48), inset 0 0 28px rgba(255,255,255,0.08);
    }

    .login-card h2 {
        color: #ffffff;
        text-align: center;
        font-size: 26px;
        font-weight: 700;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
    }

    .login-card .lead {
        text-align: center;
        color: rgba(255,255,255,0.82);
        margin-top: 8px;
        font-size: 14px;
    }

/* FIELDS */
.field {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
}

label {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    margin-bottom: 6px;
}

/* INPUTS */
input[type=text], input[type=password] {
    padding: 11px 14px;
    font-size: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.96);
    border: none;
    outline: none;
    color: #2e162a;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
    width: 100%;
}

    input[type=text]:focus-visible, input[type=password]:focus-visible {
        box-shadow: 0 0 0 3px rgba(245,158,11,0.35);
        transform: scale(1.01);
    }

/* BUTTON */
.btn {
    width: 100%;
    margin-top: 22px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.30);
    }

    .btn:focus-visible {
        outline: 3px solid rgba(245,158,11,0.6);
        outline-offset: 2px;
    }

/* OPTIONS ROW */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.90);
    font-size: 13px;
    cursor: pointer;
}

.forgot-link {
    color: #ffd48f;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s ease;
}

    .forgot-link:hover {
        text-decoration: underline;
        color: #ffe6b9;
    }

/* LINKS */
.links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.70);
}

    .links a {
        color: #ffd48f;
        text-decoration: none;
        transition: 0.2s ease;
    }

        .links a:hover {
            text-decoration: underline;
            color: #ffe6b9;
        }

/* MESSAGES */
.message {
    display: block;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

    .message.error {
        background: rgba(220,38,38,0.15);
        border: 1px solid rgba(220,38,38,0.4);
        color: #fca5a5;
    }

    .message.success {
        background: rgba(5,150,105,0.15);
        border: 1px solid rgba(5,150,105,0.4);
        color: #6ee7b7;
    }

/* MATH CAPTCHA */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 4px;
}

.captcha-question {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.captcha-input {
    width: 80px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: rgba(255,255,255,0.96);
    color: #2e162a;
    outline: none;
    transition: box-shadow 0.25s ease;
}

    .captcha-input:focus-visible {
        box-shadow: 0 0 0 3px rgba(245,158,11,0.45);
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .login-wrapper {
        justify-content: center;
        padding: 20px;
    }

    .login-card {
        max-width: 92%;
        padding: 28px 26px;
        backdrop-filter: blur(6px);
        border-radius: 18px;
    }

        .login-card h2 {
            font-size: 22px;
        }
}

@media (max-width: 400px) {
    .login-card {
        padding: 22px 18px;
    }

        .login-card h2 {
            font-size: 20px;
        }

    input[type=text], input[type=password] {
        font-size: 14px;
        padding: 10px 12px;
    }

    .btn {
        font-size: 14px;
        padding: 11px;
    }

    .captcha-input {
        width: 70px;
        font-size: 14px;
    }
}
