﻿:root {
    --gm-red: #c91824;
    --gm-red-dark: #a90f1a;
    --gm-black: #1d1d1d;
    --gm-text: #222;
    --gm-muted: #737373;
    --gm-border: #e6e6e6;
    --gm-bg: #f5f6f8;
    --gm-white: #fff;
    --gm-radius: 22px;
    --gm-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.auth-page {
    min-height: 560px;
    background: radial-gradient(circle at 15% 20%, rgba(201, 24, 36, 0.12), transparent 28%), radial-gradient(circle at 85% 15%, rgba(0, 0, 0, 0.08), transparent 30%), linear-gradient(135deg, #ffffff 0%, var(--gm-bg) 100%);
}

.auth-bg {
    min-height: 560px;
    padding: 56px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--gm-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
    padding: 34px;
    position: relative;
    overflow: hidden;
}

    .auth-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: linear-gradient(90deg, var(--gm-red), var(--gm-black));
    }

.auth-brand {
    margin-bottom: 24px;
    text-align: center;
}

.auth-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--gm-black);
}

    .auth-logo span {
        font-weight: 800;
    }

    .auth-logo strong {
        font-weight: 800;
        color: var(--gm-red);
    }

.auth-subtitle {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gm-muted);
}

.auth-header {
    margin-bottom: 24px;
    text-align: center;
}

    .auth-header h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 800;
        color: var(--gm-text);
    }

    .auth-header p {
        margin: 0;
        font-size: 14px;
        line-height: 1.45;
        color: var(--gm-muted);
    }

.auth-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(201, 24, 36, 0.08);
    border: 1px solid rgba(201, 24, 36, 0.18);
}

.auth-alert-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gm-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.auth-alert-text {
    color: var(--gm-red-dark);
    font-size: 14px;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-field label {
        font-size: 14px;
        font-weight: 700;
        color: var(--gm-text);
    }

.auth-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--gm-border);
    border-radius: 14px;
    background: #fafafa;
    color: var(--gm-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .auth-input::placeholder {
        color: #a7a7a7;
    }

    .auth-input:focus {
        background: #fff;
        border-color: var(--gm-red);
        box-shadow: 0 0 0 4px rgba(201, 24, 36, 0.12);
    }

.auth-error {
    font-size: 12px;
    color: var(--gm-red);
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}

.auth-btn {
    height: 48px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .auth-btn:hover {
        transform: translateY(-1px);
    }

.auth-btn-primary {
    background: var(--gm-red);
    color: #fff;
    box-shadow: 0 10px 22px rgba(201, 24, 36, 0.28);
}

    .auth-btn-primary:hover {
        background: var(--gm-red-dark);
    }

.auth-btn-secondary {
    background: #eeeeee;
    color: var(--gm-text);
}

    .auth-btn-secondary:hover {
        background: #e1e1e1;
    }

.auth-bottom {
    padding-top: 4px;
    text-align: center;
    font-size: 14px;
    color: var(--gm-muted);
}

    .auth-bottom a {
        margin-left: 5px;
        color: var(--gm-red);
        font-weight: 800;
        text-decoration: none;
    }

        .auth-bottom a:hover {
            text-decoration: underline;
        }

@media (max-width: 576px) {
    .auth-bg {
        padding: 36px 14px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 25px;
    }

    .auth-actions {
        grid-template-columns: 1fr;
    }
}
