/* assets/css/auth.css */

:root {
    --primary: #058f53;
    --primary-dark: #037040;
    --primary-light: #e6f6ee;
    --primary-gradient: linear-gradient(135deg, #058f53 0%, #0ebb62 100%);
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --font-family: 'Cairo', sans-serif;
    --border-radius: 16px;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.auth-page {
    font-family: var(--font-family);
    background: radial-gradient(circle at 10% 20%, rgba(234, 252, 243, 0.7) 0%, rgba(255, 255, 255, 1) 90%);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* خلفية جمالية مضافة */
body.auth-page::before,
body.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

body.auth-page::before {
    width: 300px;
    height: 300px;
    background: rgba(14, 187, 98, 0.15);
    top: -50px;
    left: -50px;
}

body.auth-page::after {
    width: 250px;
    height: 250px;
    background: rgba(5, 143, 83, 0.1);
    bottom: -50px;
    right: -50px;
}

.auth-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    max-width: 580px;
    margin: auto;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.auth-card .card-header {
    background: transparent;
    border-bottom: none;
    padding: 2.5rem 2rem 1rem;
}

.auth-card .card-header h3 {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.85rem;
}

.auth-card .card-header p {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 0.5rem;
}

.auth-card .card-body {
    padding: 1.5rem 2.5rem 2.5rem;
}

/* تنسيق حقول المدخلات */
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    transition: var(--transition);
    background: var(--white);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 143, 83, 0.12);
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--secondary);
    padding-left: 0.75rem;
    padding-right: 1rem;
    font-size: 1.15rem;
}

.form-control, .form-select {
    border: none !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 600;
    box-shadow: none !important;
    background: transparent;
}

.form-control::placeholder {
    color: var(--gray-300);
}

/* الأزرار الفاخرة */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 20px rgba(5, 143, 83, 0.2);
    transition: var(--transition);
    font-size: 1.05rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #037040 0%, #058f53 100%);
    box-shadow: 0 10px 25px rgba(5, 143, 83, 0.3);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* التنبيهات */
.alert {
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* الروابط الإضافية */
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.role-fields {
    transition: var(--transition);
}
