.packster-auth {
    font-family: 'Montserrat', Arial, sans-serif;
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 28px;
    color: #222;
}

.packster-auth-card {
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.packster-auth-card-header {
    min-height: 88px;
    padding: 24px 32px;
    background: #f7f7f7;
    border-bottom: 1px solid #e8e8e8;
}

.packster-auth-card-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #333;
}

.packster-auth-card-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.packster-auth-card-body {
    padding: 28px 32px 32px;
}

.packster-auth-section {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.packster-auth-section legend {
    display: block;
    width: 100%;
    margin-bottom: 16px;
    padding: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}

.packster-auth-grid {
    display: grid;
    gap: 18px 22px;
}

.packster-auth-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.packster-field {
    display: block;
    margin: 0;
}

.packster-field--full {
    grid-column: 1 / -1;
}

.packster-field span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #333;
}

.packster-field .required {
    color: #c62828;
    text-decoration: none;
    border: 0;
}

.packster-field input {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: #222;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.packster-field input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.packster-auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.packster-auth-submit:hover {
    background: #000;
}

.packster-auth-submit:active {
    transform: translateY(1px);
}

.packster-auth-footer-link {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
}

.packster-auth-footer-link a {
    color: #444;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.packster-auth-footer-link a:hover {
    color: #111;
}

.packster-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.packster-alert-error {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #f5bcbc;
}

.packster-alert-success {
    background: #f0fff4;
    color: #2e7d32;
    border: 1px solid #b7e4c7;
}

@media (max-width: 900px) {
    .packster-auth {
        grid-template-columns: 1fr;
        margin: 24px auto;
        gap: 22px;
    }

    .packster-auth-card-header,
    .packster-auth-card-body {
        padding-left: 22px;
        padding-right: 22px;
    }

    .packster-auth-grid--2 {
        grid-template-columns: 1fr;
    }

    .packster-field--full {
        grid-column: auto;
    }
}

.packster-auth--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
}

.packster-auth--single .packster-auth-card {
    width: 100%;
}
