* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #10233d, #071425);
    color: #10233d;
}

.auth-container {
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    padding: 35px 20px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
}

.auth-brand img {
    width: 220px;
    max-width: 85%;
}

.auth-brand p {
    font-size: 13px;
    margin: 12px 0;
}

.brand-line {
    width: 55px;
    height: 4px;
    background: #ed1025;
    transform: skewX(-25deg);
    margin: 15px auto;
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.auth-tabs {
    display: flex;
    background: #f0f3f7;
    border-radius: 9px;
    padding: 5px;
    margin-bottom: 25px;
}

.auth-tabs a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 5px;
    text-decoration: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
}

.auth-tabs a.active {
    background: #10233d;
    color: #fff;
}

.auth-tabs svg {
    width: 17px;
    height: 17px;
}

.auth-card h1 {
    font-size: 23px;
    text-align: center;
    margin: 0 0 10px;
}

.auth-subtitle {
    text-align: center;
    color: #78869a;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.auth-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #dce3eb;
    border-radius: 8px;
    margin-bottom: 14px;
    background: #f8fafc;
    transition: 0.2s;
}

.auth-field:focus-within {
    border-color: #10233d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 35, 61, 0.07);
}

.auth-field > svg {
    width: 19px;
    height: 19px;
    color: #8290a4;
    flex-shrink: 0;
}

.auth-field input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #10233d;
    font-size: 14px;
    padding: 15px 0;
}

.auth-field input::placeholder {
    color: #8a97a9;
}

.password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #8290a4;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    margin: 18px 0;
}

.auth-options label,
.auth-terms label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.auth-options a {
    color: #ed1025;
    text-decoration: none;
    font-weight: 600;
}

.auth-page input[type="checkbox"] {
    accent-color: #ed1025;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.auth-terms {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    margin: 18px 0;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 8px;
    background: #ed1025;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.auth-submit:hover:not(:disabled) {
    background: #c90d20;
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.auth-submit svg {
    width: 19px;
    height: 19px;
}

#authMessage:empty {
    display: none;
}

#authMessage {
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 25px 0;
    color: #fff;
}

.auth-benefits > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px 4px;
}

.auth-benefits svg {
    width: 25px;
    height: 25px;
    color: #ed1025;
}

.auth-benefits span {
    font-size: 11px;
    line-height: 1.6;
}

.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #b5c2d3;
    text-decoration: none;
    font-size: 13px;
    margin-top: 20px;
}

.auth-back:hover {
    color: #fff;
}

.auth-back svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 15px;
    }

    .auth-card {
        padding: 22px 18px;
    }

    .auth-brand img {
        width: 185px;
    }

    .auth-card h1 {
        font-size: 21px;
    }

    .auth-field input {
        font-size: 16px;
    }

    .auth-benefits span {
        font-size: 10px;
    }
}