:root {
    --ofta-primary: #0057b8;
    --ofta-primary-700: #00428b;
    --ofta-surface: #ffffff;
    --ofta-surface-soft: #f4f7fb;
    --ofta-text: #1f2a3a;
    --ofta-muted: #5d6b80;
    --ofta-success-bg: #e9f9ef;
    --ofta-success-text: #176b35;
    --ofta-error-bg: #fdecee;
    --ofta-error-text: #9b1c2a;
    --ofta-border: #dbe3ef;
    --ofta-shadow: 0 20px 50px rgba(17, 40, 71, 0.08);
}

.ofta-wrap {
    max-width: 1020px;
    margin: 28px auto;
    padding: 0 20px;
}

.ofta-wrap-wide {
    max-width: 1240px;
}

.ofta-card {
    background: radial-gradient(circle at top right, #f6faff, #ffffff 45%);
    border: 1px solid var(--ofta-border);
    border-radius: 16px;
    box-shadow: var(--ofta-shadow);
    padding: 40px 44px;
}

.ofta-form h2 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    color: var(--ofta-text);
}

.ofta-subtitle {
    color: var(--ofta-muted);
    margin-top: 0;
    margin-bottom: 20px;
}

.ofta-form h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ofta-border);
    color: var(--ofta-text);
}

.ofta-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--ofta-text);
    font-weight: 600;
}

.ofta-form input:not([type="checkbox"]):not([type="radio"]),
.ofta-form select,
.ofta-form textarea {
    width: 100%;
    border: 1px solid #cfd4db;
    border-radius: 30px !important;
    min-height: 52px;
    padding: 12px 18px;
    font-size: 1rem;
    background: #fff;
    color: #4a5565;
    box-sizing: border-box;
    box-shadow: none;
}

.ofta-form input::placeholder,
.ofta-form textarea::placeholder {
    color: #9ea7b3;
    opacity: 1;
}

.ofta-auth-form label:not(.ofta-checkbox) {
    display: none;
}

.ofta-auth-form input:not([type="checkbox"]):not([type="radio"]),
.ofta-auth-form select,
.ofta-auth-form .ofta-password-wrap,
.ofta-auth-form .ofta-grid > div {
    margin-bottom: 8px;
}

.ofta-form input:not([type="checkbox"]):not([type="radio"]):focus,
.ofta-form select:focus,
.ofta-form textarea:focus {
    border-color: #bfc7d2;
    box-shadow: 0 0 0 2px rgba(191, 199, 210, 0.14);
    outline: none;
}

.ofta-auth-form input:not([type="checkbox"]):not([type="radio"]),
.ofta-auth-form select,
.ofta-auth-form textarea {
    margin-bottom: 12px;
}

.ofta-login-form h2,
.ofta-login-form .ofta-subtitle {
    text-align: center;
}

.ofta-login-form {
    max-width: 760px;
    margin: 0 auto;
}

.ofta-register-form .ofta-grid {
    gap: 10px 14px;
}

.ofta-panel-form .ofta-grid {
    gap: 12px 16px;
}

.ofta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.ofta-form small {
    display: block;
    margin-top: 6px;
    color: var(--ofta-muted);
}

.ofta-form-row.ofta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.ofta-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ofta-checkbox input {
    width: auto;
}

.ofta-password-wrap {
    position: relative;
    display: block;
}

.ofta-password-wrap input {
    padding-right: 44px;
}

.ofta-pass-toggle,
.ofta-button,
.ofta-button-secondary {
    border: none !important;
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ofta-pass-toggle {
    background: transparent;
    color: #bcc4cf;
    min-width: auto;
    padding: 0;
    border: 0;
}

.ofta-pass-toggle:hover {
    background: transparent;
}

.ofta-pass-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 !important;
    min-width: 18px !important;
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    appearance: none;
    color: #bcc4cf;
    line-height: 1;
}

.ofta-pass-toggle-icon:hover {
    background: transparent;
    color: #aeb6c2;
}

.ofta-eye-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23bcc4cf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.46 12s3.6-6 9.54-6 9.54 6 9.54 6-3.6 6-9.54 6-9.54-6-9.54-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");
}

.ofta-button {
    background: var(--ofta-primary);
    color: #fff;
    margin-top: 10px;
}

.ofta-button:hover {
    background: hsl(198, 74%, 50%);
}

.ofta-button-secondary {
    background: #edf2fb;
    color: #304a70;
}

.ofta-button-secondary:hover {
    background: hsl(198, 74%, 50%);
    color: #fff;
}

.ofta-button:focus,
.ofta-button-secondary:focus {
    outline: none;
    box-shadow: none;
}

.ofta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ofta-actions .ofta-button {
    margin-top: 0;
    text-decoration: none;
}

.ofta-alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.ofta-alert ul {
    margin: 0;
    padding-left: 18px;
}

.ofta-alert-error {
    background: var(--ofta-error-bg);
    color: var(--ofta-error-text);
    border: 1px solid #f5c7cd;
}

.ofta-alert-success {
    background: var(--ofta-success-bg);
    color: var(--ofta-success-text);
    border: 1px solid #b6e6c5;
}

.ofta-profile-photo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px dashed var(--ofta-border);
    border-radius: 12px;
    background: var(--ofta-surface-soft);
}

.ofta-profile-photo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d2dff2;
}

.ofta-password-panel {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--ofta-border);
}

.ofta-admin-table {
    margin-top: 14px;
}

.ofta-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ofta-status-badge.active {
    background: #e8f8ee;
    color: #1f7c3a;
}

.ofta-status-badge.blocked {
    background: #fdecee;
    color: #9b1c2a;
}

.ofta-admin-settings {
    margin-top: 16px;
    max-width: 720px;
}

@media (max-width: 768px) {
    .ofta-wrap,
    .ofta-wrap-wide {
        max-width: 100%;
        margin: 16px auto;
        padding: 0 12px;
    }

    .ofta-card {
        padding: 22px 16px;
    }

    .ofta-login-form {
        max-width: 100%;
    }

    .ofta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ofta-actions {
        width: 100%;
        gap: 8px;
    }

    .ofta-actions .ofta-button {
        flex: 1 1 100%;
        text-align: center;
    }

    .ofta-form-row.ofta-inline {
        gap: 12px;
    }
}
