* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #f1f3f5;
}

.cp-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cp-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    padding: 36px 32px;
    text-align: center;
}

.cp-logo-section { margin-bottom: 26px; }
.cp-logo { width: 64px; margin-bottom: 14px; }

.cp-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.cp-subtitle {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.form-group {
    text-align: right;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a4a4a;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    min-height: 15px;
    display: block;
    text-align: right;
}

.form-group.has-error input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: right;
}
.form-alert.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.form-alert.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.btn-cp-submit {
    width: 100%;
    height: 48px;
    background-color: #d4af37;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}
.btn-cp-submit:hover { background-color: #baa232; }
.btn-cp-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.cp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cpSpin 0.7s linear infinite;
}
@keyframes cpSpin { to { transform: rotate(360deg); } }

.cp-logout-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    margin-top: 18px;
    font-size: 12.5px;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
}
.cp-logout-link:hover { color: #64748b; }

@media (prefers-reduced-motion: reduce) {
    .cp-spinner { animation: none !important; }
}