/* =========================================================
   Ark Custom Auth — Stylesheet
   Primary color is set via inline CSS as --ark-primary
   ========================================================= */

:root {
    --ark-primary:      #F5A623;
    --ark-primary-dark: #d48b0c;
    --ark-radius:       6px;
    --ark-border:       #d0d0d0;
    --ark-bg:           #ffffff;
    --ark-text:         #1a1a1a;
    --ark-text-light:   #555;
    --ark-error-bg:     #fff5f5;
    --ark-error-border: #e53e3e;
    --ark-error-text:   #c53030;
    --ark-success-bg:   #f0fff4;
    --ark-success-border:#38a169;
    --ark-success-text: #276749;
    --ark-wrap-max:     520px;
}

/* Wrap */
.ark-auth-wrap {
    max-width: var(--ark-wrap-max);
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ark-text);
}

.ark-auth-form {
    background: var(--ark-bg);
    border: 1px solid var(--ark-border);
    border-radius: var(--ark-radius);
    padding: 32px;
    box-sizing: border-box;
}

/* Messages */
.ark-message {
    padding: 12px 16px;
    border-radius: var(--ark-radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
}

.ark-message-error {
    background: var(--ark-error-bg);
    border-color: var(--ark-error-border);
    color: var(--ark-error-text);
}

.ark-message-success {
    background: var(--ark-success-bg);
    border-color: var(--ark-success-border);
    color: var(--ark-success-text);
}

/* Field group */
.ark-field-group {
    margin-bottom: 20px;
}

.ark-field-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ark-text);
}

.ark-required {
    color: #e53e3e;
    margin-left: 2px;
}

.ark-field-group input[type="text"],
.ark-field-group input[type="email"],
.ark-field-group input[type="password"],
.ark-field-group input[type="url"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--ark-border);
    border-radius: var(--ark-radius);
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    background: #fff;
    color: var(--ark-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ark-field-group input:focus {
    border-color: var(--ark-primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

/* Password wrap */
.ark-password-wrap {
    position: relative;
}

.ark-password-wrap input {
    padding-right: 44px !important;
}

.ark-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ark-text-light);
    line-height: 0;
    transition: color 0.15s;
}

.ark-toggle-pass:hover {
    color: var(--ark-text);
}

.ark-eye-icon {
    width: 20px;
    height: 20px;
}

/* Remember checkbox */
.ark-remember {
    margin-bottom: 24px;
}

.ark-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 14px;
    color: var(--ark-text-light) !important;
}

.ark-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--ark-primary);
}

/* Buttons */
.ark-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--ark-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

.ark-btn-primary {
    background-color: var(--ark-primary);
    color: #fff;
}

.ark-btn-primary:hover {
    background-color: var(--ark-primary-dark);
}

.ark-btn-primary:active {
    transform: translateY(1px);
}

/* Links */
.ark-form-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ark-link {
    color: var(--ark-primary);
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
}

.ark-link:hover {
    text-decoration: underline;
    color: var(--ark-primary-dark);
}

/* Intro text */
.ark-form-intro {
    font-size: 14px;
    color: var(--ark-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Accessibility — hide honeypot visually */
.ark-hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Loading state */
.ark-auth-form.ark-loading .ark-btn-primary {
    opacity: 0.7;
    pointer-events: none;
}

.ark-auth-form.ark-loading .ark-btn-primary::after {
    content: ' …';
}

/* Responsive */
@media (max-width: 540px) {
    .ark-auth-form {
        padding: 20px 16px;
    }
}
