/* Snug Network Login — mobile-first, matches snug-forms.css aesthetic */

.snug-login-wrap {
    max-width: 400px;
    margin: 40px auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Header */
.snug-login-header {
    text-align: center;
    margin-bottom: 24px;
}

.snug-login-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1e1e1e;
}

.snug-login-header p {
    margin: 0;
    font-size: 14px;
    color: #757575;
}

/* Messages */
.snug-login-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

.snug-login-error,
.snug-login-error * {
    background: #fcf0f0;
    border: 1px solid #d63638;
    color: #d63638 !important;
}

.snug-login-success,
.snug-login-success * {
    background: #edfaef;
    border: 1px solid #00a32a;
    color: #00a32a !important;
}

/* Form */
.snug-login-form {
    margin: 0;
}

/* Fields */
.snug-login-field {
    margin-bottom: 16px;
}

.snug-login-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #1e1e1e;
}

/* v1.9.188: background/color/border stripped. Owned by the universal
   dark-form base in snug-global.css / snug-network-bundle.css. */
.snug-login-field input[type="text"],
.snug-login-field input[type="email"],
.snug-login-field input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.snug-login-field input:focus {
    outline: none;
    border-color: var(--gold, #c9a45a);
    box-shadow: 0 0 0 1px var(--gold, #c9a45a);
}

/* Password field with toggle */
.snug-login-password-wrap {
    position: relative;
}

.snug-login-password-wrap input {
    padding-right: 60px;
}

.snug-login-toggle-pw {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--gold, #c9a45a);
    font-family: "League Spartan", var(--font-display, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 8px;
}

.snug-login-toggle-pw:hover {
    color: #b8923f;
}

/* Password strength meter */
.snug-login-strength {
    margin-top: 6px;
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
    transition: background 0.2s ease;
}

.snug-login-strength[data-strength="weak"] {
    background: #d63638;
}

.snug-login-strength[data-strength="medium"] {
    background: #f0b429;
}

.snug-login-strength[data-strength="strong"] {
    background: #00a32a;
}

.snug-login-strength-label {
    font-size: 12px;
    margin-top: 2px;
    color: #757575;
}

/* Options row (remember me + forgot password) */
.snug-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.snug-login-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #50575e;
    cursor: pointer;
}

.snug-login-remember input[type="checkbox"] {
    margin: 0;
}

.snug-login-forgot {
    color: #0073aa;
    text-decoration: none;
}

.snug-login-forgot:hover {
    color: #005d8c;
    text-decoration: underline;
}

/* Submit button */
.snug-login-actions {
    margin-top: 20px;
}

.snug-login-submit {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}

.snug-login-submit:hover {
    background: #005d8c;
}

.snug-login-submit:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

/* Link styled as button (for "Go to Dashboard") */
.snug-login-submit--link {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

/* Footer links */
.snug-login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
    color: #757575;
}

.snug-login-footer a {
    color: #0073aa;
    text-decoration: none;
}

.snug-login-footer a:hover {
    color: #005d8c;
    text-decoration: underline;
}

.snug-login-footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .snug-login-wrap {
        margin: 20px 16px;
        padding: 24px 16px;
    }

    .snug-login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
