/* ===== Signing / Registration - Modern Design ===== */
.cc-sign-wrap {
    max-width: 480px;
    margin: 40px auto;
    font-family: Tahoma, Arial, sans-serif;
    direction: rtl;
}

/* === Login Section === */
.cc-login-section {
    display: flex;
    justify-content: center;
}

.cc-login-card {
    background: #fff;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    width: 100%;
}

.cc-login-header {
    text-align: center;
    margin-bottom: 30px;
}

.cc-login-logo {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.cc-login-header h2 {
    color: #1a1a2e;
    font-size: 22px;
    margin-bottom: 8px;
}

.cc-login-header p {
    color: #888;
    font-size: 14px;
}

.cc-login-form .cc-field {
    margin-bottom: 16px;
    position: relative;
}

.cc-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.cc-login-form .cc-field input {
    width: 100%;
    padding: 14px 18px 14px 18px;
    padding-right: 44px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: Tahoma;
    direction: rtl;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cc-login-form .cc-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.cc-btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-family: Tahoma;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cc-btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(102,126,234,0.4);
}

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

.cc-error {
    margin-top: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

/* === Registration Section === */
.cc-register-section {
    display: flex;
    justify-content: center;
}

.cc-register-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
    width: 100%;
}

.cc-register-header {
    text-align: center;
    margin-bottom: 25px;
}

.cc-register-logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.cc-register-header h2 {
    color: #1a1a2e;
    font-size: 22px;
}

.cc-register-form .cc-form-row {
    margin-bottom: 18px;
}

.cc-register-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: bold;
}

.cc-register-form input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: Tahoma;
    direction: rtl;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cc-register-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

/* === QR Input Row === */
.cc-qr-input-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.cc-qr-input-row:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.cc-qr-input-prefix {
    font-size: 12px;
    color: #667eea;
    white-space: nowrap;
    direction: ltr;
    background: #f0f4ff;
    padding: 13px 10px;
    border-left: 1px solid #e0e0e0;
    font-weight: bold;
}

.cc-qr-input-row input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}

.cc-qr-input-row input:focus {
    outline: none;
    border: none !important;
    box-shadow: none !important;
}

/* === QR Preview === */
.cc-qr-preview {
    margin-top: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
    border-radius: 8px;
    font-size: 12px;
    color: #444;
    direction: ltr;
    border: 1px solid #d0d8ff;
}

.cc-qr-preview-label {
    color: #999;
}

/* === Field Hint === */
.cc-field-hint {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 4px;
}

/* === Success/Error Button === */
.cc-btn-success {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
    font-family: Tahoma;
    margin-top: 10px;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(56,239,125,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cc-btn-success:hover {
    opacity: 0.9;
    box-shadow: 0 6px 20px rgba(56,239,125,0.4);
}

.cc-btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Message === */
.cc-message {
    margin-top: 15px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
}

.cc-message.cc-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.cc-message.cc-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #c62828;
}

/* === Logout Button === */
.cc-sign-logout {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.cc-sign-logout-btn {
    padding: 8px 24px;
    background: none;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #999;
    font-family: Tahoma;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-sign-logout-btn:hover {
    border-color: #ff5252;
    color: #ff5252;
}

/* === VIP/Lunch Badges === */
.cc-badge-vip, .cc-badge-lunch {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin: 2px;
}
.cc-badge-vip.yes { background: #00c853; color: #fff; }
.cc-badge-vip.no { background: #ff1744; color: #fff; }
.cc-badge-lunch.yes { background: #00c853; color: #fff; }
.cc-badge-lunch.no { background: #ff1744; color: #fff; }

/* === Form Row Inline (VIP/Lunch side by side) === */
.cc-form-row-inline {
    display: flex;
    gap: 15px;
}
.cc-form-col {
    flex: 1;
}
.cc-form-col label {
    display: block;
    margin-bottom: 4px;
    color: #555;
    font-size: 14px;
    font-weight: bold;
}
.cc-form-col select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: Tahoma;
    font-size: 14px;
    transition: border-color 0.3s;
    cursor: pointer;
}
.cc-form-col select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

/* === Print Size Selector === */
.cc-print-size-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.cc-print-size-select label {
    font-weight: bold;
    color: #555;
}
.cc-print-size-select select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: Tahoma;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s;
}
.cc-print-size-select select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}
