:root {
    --pmc-primary: #2e7d32;
    --pmc-primary-hover: #1b5e20;
    --pmc-bg: #f5f7fa;
    --pmc-card-bg: #fff;
    --pmc-text: #333;
    --pmc-text-light: #888;
    --pmc-border: #e0e0e0;
    --pmc-error: #d32f2f;
    --pmc-success: #2e7d32;
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

.pmc-auth-wrapper {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--pmc-bg);
    direction: rtl;
}

.pmc-auth-card {
    background: var(--pmc-card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.pmc-auth-logo {
    margin-bottom: 24px;
}

.pmc-auth-logo img {
    max-height: 60px;
}

.pmc-auth-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pmc-text);
    margin: 0 0 8px;
}

.pmc-auth-subtitle {
    font-size: 13px;
    color: var(--pmc-text-light);
    margin: 0 0 28px;
    line-height: 1.6;
}

.pmc-auth-step {
    display: none;
}

.pmc-auth-step.active {
    display: block;
}

.pmc-input-group {
    margin-bottom: 20px;
    text-align: right;
}

.pmc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pmc-text);
    margin-bottom: 6px;
}

.pmc-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pmc-border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--pmc-text);
    background: #fafafa;
    transition: all 0.2s;
    outline: none;
    text-align: right;
    direction: rtl;
}

.pmc-input-group input:focus {
    border-color: var(--pmc-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.pmc-input-group input.ltr {
    direction: ltr;
    text-align: left;
}

.pmc-input-group .pmc-error-text {
    color: var(--pmc-error);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.pmc-input-group.has-error input {
    border-color: var(--pmc-error);
}

.pmc-input-group.has-error .pmc-error-text {
    display: block;
}

.pmc-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
}

.pmc-otp-inputs input {
    width: 52px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--pmc-border);
    border-radius: 10px;
    background: #fafafa;
    outline: none;
    transition: all 0.2s;
    direction: ltr;
}

.pmc-otp-inputs input:focus {
    border-color: var(--pmc-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.pmc-otp-inputs input.filled {
    border-color: var(--pmc-primary);
    background: #e8f5e9;
}

.pmc-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.pmc-btn-primary:hover {
    background: var(--pmc-primary-hover);
}

.pmc-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pmc-btn-outline {
    background: transparent;
    color: var(--pmc-primary);
    border: 2px solid var(--pmc-primary);
}

.pmc-btn-outline:hover {
    background: rgba(46, 125, 50, 0.05);
}

.pmc-timer {
    font-size: 13px;
    color: var(--pmc-text-light);
    margin-top: 12px;
}

.pmc-timer span {
    color: var(--pmc-primary);
    font-weight: 700;
    font-size: 15px;
}

.pmc-timer a {
    color: var(--pmc-primary);
    cursor: pointer;
    font-weight: 600;
    display: none;
}

.pmc-timer a.show {
    display: inline;
}

.pmc-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
}

.pmc-alert.error {
    display: block;
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.pmc-alert.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pmc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pmc-spin 0.6s linear infinite;
}

@keyframes pmc-spin {
    to {
        transform: rotate(360deg);
    }
}

.pmc-mobile-display {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pmc-primary);
    direction: ltr;
    text-align: center;
}

.pmc-mobile-display .pmc-change-mobile {
    font-size: 12px;
    font-weight: 400;
    color: var(--pmc-primary);
    cursor: pointer;
    margin-right: 8px;
    text-decoration: underline;
}

.pmc-name-row {
    display: flex;
    gap: 12px;
}

.pmc-name-row .pmc-input-group {
    flex: 1;
}

@media (max-width: 480px) {
    .pmc-auth-card {
        padding: 28px 20px;
    }
    .pmc-name-row {
        flex-direction: column;
        gap: 0;
    }
    .pmc-otp-inputs input {
        width: 44px;
        height: 48px;
        font-size: 20px;
    }
}
