.dias-auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2f80ff 0%, #1b5fd8 42%, #0f49b8 100%) !important;
    position: relative;
    overflow: hidden;
    font-family: "Inter", sans-serif;
}

.dias-auth-page::before,
.dias-auth-page::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.dias-auth-page::before {
    top: -120px;
    left: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 36px rgba(255, 255, 255, 0.05),
        0 0 0 72px rgba(255, 255, 255, 0.03);
}

.dias-auth-page::after {
    right: -120px;
    top: 8%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), transparent 55%),
        repeating-radial-gradient(circle at 70% 60%, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
}

.dias-auth-shell {
    width: 100%;
    max-width: 430px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dias-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 28px;
    padding: 0 8px;
}

.dias-auth-brand-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.dias-auth-brand-logo--light {
    filter: brightness(0) invert(1);
}

.dias-auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(8, 36, 92, 0.28);
    padding: 34px 34px 28px;
    width: 100%;
}

.dias-auth-title {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px;
}

.dias-auth-field {
    margin-bottom: 18px;
}

.dias-auth-field label {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.dias-auth-input-wrap {
    position: relative;
}

.dias-auth-input-wrap > svg.dias-auth-input-icon-left {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 1;
}

.dias-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    z-index: 2;
    color: #94a3b8;
}

.dias-auth-toggle-password svg {
    position: static;
    transform: none;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.dias-auth-input-wrap input.form-control {
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: none;
    padding: 0 14px 0 44px;
    font-size: 0.95rem;
    color: #0f172a;
}

.dias-auth-input-wrap.dias-auth-input-with-toggle input.form-control {
    padding-right: 44px;
}

.dias-auth-input-wrap input.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.dias-auth-input-wrap input.form-control::placeholder {
    color: #94a3b8;
}

.dias-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 22px;
    color: #475569;
    font-size: 0.9rem;
}

.dias-auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.dias-auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #2f80ff 0%, #1d6fe8 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(29, 111, 232, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dias-auth-submit:hover,
.dias-auth-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(29, 111, 232, 0.42);
}

.dias-auth-input-wrap select.form-control {
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: none;
    padding: 0 14px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #fff;
}

.dias-auth-input-wrap select.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.dias-auth-register-link {
    margin-top: 10px;
}

.dias-auth-forgot {
    display: block;
    text-align: center;
    margin-top: 18px;
    color: #2563eb;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.dias-auth-forgot:hover,
.dias-auth-forgot:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.dias-auth-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
}

.dias-auth-security svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dias-auth-card .alert {
    border-radius: 10px;
    font-size: 0.9rem;
}

.dias-auth-card .g-recaptcha {
    margin-bottom: 16px;
}

.dias-auth-page--register {
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.dias-auth-shell--wide {
    max-width: 920px;
}

.dias-auth-card--register {
    padding: 32px 36px 28px;
}

.dias-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 24px;
}

.dias-auth-section-title {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 12px;
}

.dias-auth-section-title + .dias-auth-field {
    margin-top: 0;
}

.dias-auth-section-title:not(:first-of-type) {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.dias-auth-field--full {
    grid-column: 1 / -1;
}

.dias-auth-input-plain input.form-control,
.dias-auth-input-plain select.form-control {
    padding-left: 14px;
}

.dias-auth-input-plain.dias-auth-input-with-toggle input.form-control {
    padding-right: 44px;
}

.dias-auth-field .text-danger {
    color: #dc2626;
}

.dias-auth-field .help-block,
.dias-auth-field p.text-danger {
    color: #dc2626;
    font-size: 0.82rem;
    margin: 6px 0 0;
}

.dias-auth-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 16px;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dias-auth-terms input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.dias-auth-terms a {
    color: #2563eb;
}

.dias-auth-submit--register {
    margin-top: 8px;
}

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

.dias-auth-custom-fields label {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.dias-auth-custom-fields .form-control {
    height: 48px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: none;
    font-size: 0.95rem;
    color: #0f172a;
}

.dias-auth-custom-fields .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.honey-element {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

@media (max-width: 768px) {
    .dias-auth-grid {
        grid-template-columns: 1fr;
    }

    .dias-auth-card--register {
        padding: 26px 20px 22px;
    }
}

@media (max-width: 480px) {
    .dias-auth-card {
        padding: 26px 20px 22px;
    }

    .dias-auth-brand-logo {
        max-width: 220px;
    }
}
