﻿html, body {
    height: 100%;
}

.rit-login-shell {
    min-height: calc(100vh - 1.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rit-login-main {
    max-width: 760px;
    margin: 0 auto;
}

.rit-login-box {
    max-width: 560px;
    border: 1px solid var(--rit-border);
    border-radius: 18px;
    background: var(--rit-bg);
    box-shadow: var(--rit-shadow);
    padding: 1.35rem;
}

.rit-login-box .h3 {
    color: #0f172a;
    font-weight: 700;
}

.rit-login-box .h3 i {
    color: #2563eb;
}

.rit-login-box .form-label {
    color: #374151;
    font-weight: 600;
}

.rit-login-box .form-label i,
.rit-login-box .form-check-label i {
    color: #2563eb;
}

.rit-login-box .form-control {
    border: 1px solid #c9d9ff;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rit-login-box .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16);
}

.rit-login-box .form-check-label {
    color: #4b5563;
    font-weight: 500;
}

.rit-login-box .btn-primary {
    border: none;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rit-login-box .btn-primary:hover,
.rit-login-box .btn-primary:focus {
    filter: brightness(0.97);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.26);
}

.rit-login-box a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.rit-login-box a:hover {
    color: #1e40af;
    text-decoration: underline;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
    color: #344050;
    text-align: left;
    background-color: #edf2f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    position: relative;
}

@media (max-width: 767.98px) {
    .rit-login-shell {
        min-height: auto;
        align-items: stretch;
    }

    .rit-login-main {
        max-width: 100%;
    }

    .rit-login-box {
        max-width: 100%;
        padding: 1rem;
    }
}

.btn.loading {
    position: relative;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5) !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loading-spin 0.5s linear infinite;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    #overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    #overlay .spinner {
        width: 40px;
        height: 40px;
        border: 6px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        animation: loading-spin .6s linear infinite;
    }

@keyframes loading-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
