﻿html,
body,
.login-body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #1a1a27;
    color: #b2b0bf;
    font-family: Inter, Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.mud-root {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    padding-top: 80px; 
    padding-left: 16px;
    padding-right: 16px;
    gap: 24px;
}

body::before,
body::after,
.mud-root::before,
.mud-root::after {
    background: #1a1a27 !important;
    background-image: none !important;
}

.mud-header {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.mud-logo {
    max-width: 120px;
    height: auto;
}

.mud-title {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.mud-title2 {
    background: linear-gradient(90deg, #5f6bff 0%, #8b6cff 45%, #ff6aa2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.mud-paper,
.mud-card {
    width: 100%;
    max-width: 520px;
    padding: 32px 36px;
    background: #1e1e2d;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: none;
}

.mud-form {
    display: grid;
    gap: 24px;
}

.mud-field {
    display: flex;
    flex-direction: column;
}

.mud-label {
    font-size: 16px;
    color: #92929f;
    margin-bottom: 6px;
}

    .mud-label.required::after {
        content: " *";
        color: #ff3f5f;
    }

.mud-field-outlined {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mud-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: transparent;    
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mud-field-outlined:focus-within .mud-input-wrapper {
    border-color: #7e6fff;
    box-shadow: 0 0 0 1px rgba(126, 111, 255, 0.25);
}

.mud-input,
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    border: none;
    padding: 0;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #b2b0bf;
    box-shadow: none;
}

    .mud-input::placeholder,
    input::placeholder {
        color: #92929f;
    }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgba(30,30,45,1) inset !important;
    box-shadow: 0 0 0 1000px rgba(30,30,45,1) inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #b2b0bf !important;
    caret-color: #b2b0bf !important;
    transition: background-color 9999s ease-out 0s;
}

.mud-error {
    font-size: 14px;
    color: #ff3f5f;
    margin-top: 4px;
}

.mud-field:has(.mud-error:not(:empty)) .mud-input {
    border-bottom-color: #ff3f5f;
}

.mud-field:has(.mud-error:not(:empty)) .mud-input-root-outlined {
    border-color: #ff3f5f;
}

.mud-row {
    display: flex;
    align-items: center;
}

.mud-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #92929f;
}

    .mud-checkbox input {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
        position: relative;
    }

    .mud-checkbox input:focus-visible {
        outline: none;
        border-color: #7e6fff;
        box-shadow: 0 0 0 2px rgba(126, 111, 255, 0.35);
    }

    .mud-checkbox input:hover {
        border-color: rgba(255, 255, 255, 0.45);
    }

    .mud-checkbox input:checked {
        border-color: #7e6fff;
        background: rgba(126, 111, 255, 0.15);
        box-shadow: 0 0 0 1px rgba(126, 111, 255, 0.3);
    }

    .mud-checkbox input:checked::after {
        content: "";
        width: 8px;
        height: 4px;
        border-left: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        transform: rotate(-45deg);
        position: absolute;
    }

.mud-btn {
    margin-top: 6px;
    padding: 12px;
    border-radius: 6px;
    border: none;
    background: #7e6fff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease;
    width: 100%;
}

    .mud-btn:hover {
        filter: brightness(.95);
    }

.mud-links {
    margin-top: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    color: #4a86ff;
}

.mud-link {
    font-weight: 600;
}

    .mud-link:hover {
        color: #4a86ff;
        text-decoration: underline;
    }

.mud-alert {
    margin-top: 16px;
    font-size: 14px;
    color: #ff3f5f;
}

.mud-captcha {
    max-width: 20%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.mud-copyright {
    margin-top: 12px;
    font-size: 15px;
    text-align: center;
}

.mud-title {
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px 0;
}

.mud-footer {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    margin-top: 0;
    z-index: 10;
}


.mud-footer-link {
    color: #92929f;
    text-decoration: none;
    font-weight: 500;
}

@media (max-height: 700px) {
    html,
    body {
        overflow: auto;
    }

    .mud-root {
        justify-content: flex-start;
        overflow-y: auto;
    }
}

.mud-alert.mud-alert-success {
    color: #7CFC9A !important;
    background: rgba(76, 175, 80, 0.12);
    padding: 14px 16px;
    text-align: center;
}