﻿:root {
    --focus-green: #23ce9a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: url('../assets/noise.svg'), radial-gradient(900px 600px at 20% 0%, rgba(200,220,255,0.04), transparent), radial-gradient(1200px 700px at 100% 100%, rgba(220,230,245,0.04), transparent), linear-gradient(150deg, rgba(235,245,255,0.12), transparent), var(--bg);
    background-blend-mode: overlay;
    color: var(--text);
    min-height: 100vh;
}

.header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: var(--space-6);
    box-sizing: border-box;
}

.logo img {
    height: 38px;
}

.auth {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    max-width: 460px;
    width: 100%;
    text-align: center;
    background-color: #fff;
    padding: var(--space-7);
    border-radius: var(--radius-md);
}

.title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.subtitle {
    margin: 0 0 1.6rem;
}

.divider {
    width: 70px;
    height: 4px;
    margin: 0.8rem auto 1.6rem;
    background: var(--brand-2);
    border-radius: 3px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}


.form-group {
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
    text-align: left;
}

    .form-group .text-danger,
    .form-group .field-validation {
        margin-top: 0.25rem;
        display: block;
    }


input {
    width: 100%;
    max-width: 720px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    input:focus {
        outline: none;
        border-color: var(--focus-green);
        box-shadow: 0 0 0 3px rgba(35,206,154,0.35);
    }

    input.input-validation-error,
    input.input-validation-error:focus {
        border-color: #b00020 !important;
        box-shadow: 0 0 0 3px rgba(176,0,32,0.2) !important;
    }

.btn {
    width: 100%;
    max-width: 720px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    /*background: linear-gradient(90deg, var(--brand) 0%, var(--brand-strong) 100%);*/
    background: var(--brand);
    color: #fff;
    transition: filter 0.15s ease, transform 0.06s ease;
}

    .btn:hover {
        filter: brightness(1.08);
    }

    .btn:active {
        transform: translateY(1px);
    }

.form-hint, .helper {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.helper {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.footer {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-company {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-logo {
    height: 2em;
    width: auto;
    vertical-align: middle;
}

.footer-subtitle {
    margin-top: 4px;
    font-size: 0.9em;
    color: #666;
}

.validation-summary {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    background: #ffe6e8;
    border: 1px solid #ffb8bf;
    border-radius: var(--radius-sm);
    color: #b00020;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.45;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 1.2rem;
    }

    .validation-summary li {
        margin-bottom: 0.25rem;
    }

        .validation-summary li:last-child {
            margin-bottom: 0;
        }

.field-validation,
.text-danger {
    width: 100%;
    max-width: 720px;
    margin: -0.8rem auto 0.5rem;
    font-size: 0.85rem;
    color: #b00020;
    text-align: left;
}

.field-validation-valid {
    display: none;
}

.field-validation-error {
    display: inline;
}

.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

    .auth-form input,
    .auth-form .btn,
    .auth-form .validation-summary,
    .auth-form .field-validation {
        width: 100% !important;
        max-width: 100% !important;
    }

.password-wrapper {
    position: relative;
}

.toggle-visibility {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6b7280;
}

    .toggle-visibility:hover {
        color: #00c48c;
    }

.password-icon {
    width: 18px;
    height: 18px;
}

.footer-brand {
    margin-top: 24px;
    text-align: center;
}

.footer-logo {
    height: 25px;
    width: auto;
    margin-bottom: 8px;
}

.footer-company {
    font-size: 0.9rem;
    color: #6b7280;
}

.login-subtitle {
    color: #4b5563;
    margin-bottom: 24px;
}

.help-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 20px;
}


form {
    align-items: stretch !important;
}

.auth :where(.validation-summary, .field-validation, .text-danger, .helper, .btn) {
    width: 100%;
    max-width: 100%;
}
