﻿html, body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: url("/images/login-background.svg") no-repeat center center fixed;
    background-size: cover;
    background-color: #f6f7ff;
}

.login-page {
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.login-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo {
    max-width: 80px;
    height: auto;
    display: block;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 18px;
    padding: 34px 34px 30px;
    box-shadow: 0 18px 60px rgba(54, 63, 114, 0.25);
}

.login-header {
    margin-top: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.login-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #252b42;
    margin-bottom: 6px;
}

.login-header p {
    color: #8a8fa3;
    font-size: 0.98rem;
    margin-bottom: 28px;
}

.login-form .form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #404662;
    margin-bottom: 8px;
}

.login-form .form-control {
    height: 48px;
    border-radius: 8px;
    border: 1px solid #d7d9e2;
    background: #fbfbfb;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: none;
}

    .login-form .form-control:focus {
        border-color: #77747f;
        box-shadow: 0 0 0 0.2rem rgba(123, 97, 255, 0.12);
    }

.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 2.75rem;
}

.password-input .form-control::-ms-reveal,
.password-input .form-control::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .45rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
    color: #475b71;
    background: rgba(71, 91, 113, .08);
    outline: none;
}

.login-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 22px;
    gap: 12px;
}

    .login-meta .form-check {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: unset;
        padding-left: 0;
    }

    .login-meta .form-check-input {
        margin: 0;
        width: 16px;
        height: 16px;
        border-radius: 4px;
        border: 1px solid #d7d9e2;
    }

    .login-meta .form-check-label {
        color: #7b809a;
        font-size: 0.92rem;
    }

.forgot-link {
    color: #475b71;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.btn-login {
    height: 48px;
    border: 0;
    border-radius: 8px;
    background: #475b71;
    color: #fff;
    font-weight: 700;
    margin-bottom: 22px;
}

    .btn-login:hover {
        background: #6687ab;
        color: #fff;
    }

.login-divider {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

    .login-divider span {
        position: relative;
        z-index: 1;
        background: #fff;
        padding: 0 12px;
        color: #4f556b;
        font-weight: 600;
    }

    .login-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: #ececf4;
    }

.social-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.social-box {
    width: 46px;
    height: 38px;
    border-radius: 6px;
    background: #f4f2ff;
    color: #5e6176;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid #ece8ff;
}

    .social-box:hover {
        background: #ebe6ff;
        color: #4a4d62;
    }

.login-footer {
    text-align: center;
    color: #8a8fa3;
    font-size: 0.95rem;
}

    .login-footer a {
        color: #475b71;
        text-decoration: none;
        font-weight: 600;
        margin-left: 4px;
    }

        .login-footer a:hover {
            text-decoration: underline;
        }
