﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
}

.auth-body {
    min-height: 100vh;
    background-color: #0f172a;
    background-image: url('/Content/images/login-road.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

    .auth-body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.10);
        z-index: 0;
    }

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    padding: 34px 36px 28px;
}

    .auth-card.auth-card-wide {
        max-width: 360px;
    }

.auth-card-spacer {
    height: 48px;
}

.auth-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.auth-subtitle {
    margin: -8px 0 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.auth-form-group {
    margin-bottom: 18px;
}

.auth-validation {
    color: #c0392b;
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

.validation-summary-errors {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #fdeaea;
    color: #b42318;
    font-size: 13px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

.auth-input,
.auth-password-input,
.auth-code-input {
    width: 100%;
    height: 40px;
    border: 1px solid #bcc8d6;
    border-radius: 4px;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    padding: 0 12px;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .auth-input:focus,
    .auth-password-input:focus,
    .auth-code-input:focus {
        border-color: #7aa7d9;
        box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.10);
    }

.auth-password-wrap {
    position: relative;
}

.auth-password-input {
    padding-right: 42px;
}

.auth-password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .auth-password-toggle svg {
        width: 18px;
        height: 18px;
    }

.auth-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 22px;
    color: #333;
    font-size: 14px;
}

    .auth-check-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: #2f80d1;
        cursor: pointer;
    }

    .auth-check-row label {
        cursor: pointer;
    }

.auth-btn {
    min-width: 84px;
    height: 37px;
    background: #3b82d0;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    padding: 0 18px;
    transition: background .2s ease, transform .1s ease;
}

    .auth-btn:hover {
        background: #2f74c0;
    }

    .auth-btn:active {
        transform: translateY(1px);
    }

.auth-link-wrap {
    text-align: center;
    margin-top: 18px;
}

.auth-link {
    color: #4d79c7;
    font-size: 14px;
    text-decoration: none;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.auth-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-note {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.auth-code-input {
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

::placeholder {
    color: #9aa3af;
    opacity: 1;
}

@media (max-width: 480px) {
    .auth-card {
        max-width: 92%;
        padding: 28px 24px 24px;
    }

    .auth-card-spacer {
        height: 30px;
    }
}
.auth-card.auth-card-wide {
    max-width: 340px;
}

.auth-code-input {
    text-align: center;
    letter-spacing: 3px;
    font-weight: 600;
}