*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-accent), #ffffff);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2a44;
}

.auth-wrapper {
    width: 100%;
    max-width: 1080px;
    margin: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 24px 48px rgba(28, 87, 255, 0.12);
    text-align: center;
}

.brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(28, 87, 255, 0.08), rgba(28, 87, 255, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.brand-card h1 {
    margin: 0 0 12px;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.brand-card p {
    margin: 0;
    color: #334160;
    line-height: 1.6;
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    padding: 42px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.auth-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.auth-subtitle {
    margin: 0 0 30px;
    color: #4f5b78;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cad3f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(28, 87, 255, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-color), #1638c6);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(28, 87, 255, 0.25);
}

.auth-alert {
    background: rgba(220, 53, 69, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #a11226;
    font-weight: 600;
}

.auth-footer {
    margin-top: 26px;
    color: #64708f;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 768px) {
    .auth-wrapper {
        margin: 24px;
    }

    .auth-card,
    .brand-card {
        padding: 28px;
    }
}
