/* ===== Base ===== */
body {
    font-family: 'Cairo', sans-serif;
    background: #F3F4F6; /* رمادي فاتح */
    color: #1F2937; /* رمادي غامق */
}

/* ===== Form Container ===== */
/* ===== Container ===== */
.auth-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f1f1;
    position: relative;
    overflow: hidden;
}

/* Top gradient bar */
.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #4f46e5, #7c3aed);
}

/* ===== Title ===== */
.auth-container h2 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    color: #1f2937;
    margin-bottom: 8px;
}

/* ===== Inputs ===== */
.input-field {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.input-field:focus {
    background: #ffffff;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* ===== Button ===== */
.btn-purple {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
    transition: all 0.2s ease;
}

.btn-purple:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.35);
}

/* ===== Links ===== */
.auth-container a {
    transition: 0.2s;
}

.auth-container a:hover {
    opacity: 0.8;
}

/* ===== Error Box ===== */
.auth-container .error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 12px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px;
        border-radius: 18px;
    }

    .auth-container h2 {
        font-size: 20px;
    }
}

/* ===== Buttons ===== */
.btn-purple {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #6B21A8; /* البنفسجي */
    color: #FFF;
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-purple:hover {
    background: #7C3AED; /* أفتح */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.btn-green {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: #10B981; /* أخضر */
    color: #FFF;
    font-weight: 600;
    border-radius: 0.5rem;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-green:hover {
    background: #34D399; /* أخضر فاتح */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ===== Links ===== */
.auth-container a {
    color: #6B21A8;
    text-decoration: underline;
    transition: color 0.3s;
}

.auth-container a:hover {
    color: #9333EA;
}

/* ===== Error Messages ===== */
.text-red-500 {
    background: #FEE2E2;
    color: #B91C1C;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}


.input-field {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.btn-purple {
    background-color: #7c3aed;
    color: white;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
}

.btn-purple:hover {
    background-color: #6b21a8;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}
