.resilio-auth-page {
    --rl-primary: #4f8fe8;
    --rl-primary-dark: #3b78cf;
    --rl-primary-soft: #e8f3fc;
    --rl-text: #1e293b;
    --rl-muted: #64748b;
    --rl-border: #c9dff2;
    --rl-card-shadow: 0 18px 45px rgba(79, 143, 232, 0.14);
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, #f5fbff 0%, #e8f3fc 35%, #dceefb 100%);
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    color: var(--rl-text);
    position: relative;
    overflow-x: hidden;
}

.resilio-auth-page *,
.resilio-auth-page *::before,
.resilio-auth-page *::after {
    box-sizing: border-box;
}

.resilio-auth-page::before,
.resilio-auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.resilio-auth-page::before {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(79, 143, 232, 0.08);
}

.resilio-auth-page::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -60px;
    background: rgba(79, 143, 232, 0.06);
}

.resilio-auth-brand {
    position: absolute;
    top: 28px;
    left: 36px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.resilio-auth-brand img {
    height: 42px;
    width: auto;
    display: block;
}

.resilio-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.25rem 2rem;
    position: relative;
    z-index: 1;
}

.resilio-auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--rl-card-shadow);
    border: 1px solid rgba(201, 223, 242, 0.8);
    padding: 2rem;
    overflow: hidden;
}

.resilio-auth-card form {
    width: 100%;
}

.resilio-auth-card h1 {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--rl-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.resilio-auth-subtitle {
    color: var(--rl-muted);
    font-size: 0.88rem;
    margin-bottom: 1.6rem;
    line-height: 1.45;
}

.resilio-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rl-text);
    margin-bottom: 0.4rem;
}

.resilio-input-wrap {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
}

.resilio-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.resilio-input-wrap input {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 1.5px solid var(--rl-border);
    background: var(--rl-primary-soft);
    border-radius: 8px;
    padding: 0.72rem 0.85rem 0.72rem 2.45rem;
    font-size: 0.92rem;
    color: var(--rl-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.resilio-input-wrap input:focus {
    outline: none;
    border-color: var(--rl-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 143, 232, 0.15);
}

.resilio-input-wrap input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.resilio-field-error {
    color: #dc3545;
    font-size: 0.78rem;
    margin: -0.55rem 0 0.85rem;
}

.resilio-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
    flex-wrap: wrap;
    width: 100%;
}

.resilio-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--rl-muted);
    cursor: pointer;
    user-select: none;
}

.resilio-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--rl-primary);
}

.resilio-forgot {
    font-size: 0.82rem;
    color: var(--rl-primary);
    text-decoration: none;
    font-weight: 600;
}

.resilio-forgot:hover {
    color: var(--rl-primary-dark);
    text-decoration: underline;
}

.resilio-login-btn {
    display: block;
    width: 100%;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #5a98eb 0%, var(--rl-primary) 55%, var(--rl-primary-dark) 100%);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.78rem 1rem;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 8px 18px rgba(79, 143, 232, 0.28);
}

.resilio-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(79, 143, 232, 0.34);
}

.resilio-login-btn:active {
    transform: translateY(0);
}

.resilio-auth-footer {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #eef4f9;
    text-align: center;
    font-size: 0.78rem;
    color: var(--rl-muted);
    line-height: 1.5;
}

.resilio-auth-footer a {
    color: var(--rl-primary);
    font-weight: 600;
    text-decoration: none;
}

.resilio-auth-footer a:hover {
    text-decoration: underline;
}

.resilio-alert {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.resilio-alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.resilio-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 576px) {
    .resilio-auth-brand {
        left: 50%;
        transform: translateX(-50%);
        top: 20px;
    }

    .resilio-auth-wrap {
        padding-top: 5.5rem;
    }

    .resilio-auth-card {
        padding: 1.5rem 1.25rem 1.25rem;
    }
}
