/* تصميم صفحات المصادقة لمشروع روكيت كارجو */

.auth-container {
    max-width: 450px;
    margin: 2rem auto;
    padding: 1rem;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.auth-header-bg {
    background-color: var(--rocket-red);
    background-image: linear-gradient(45deg, var(--rocket-red) 0%, var(--rocket-red-dark) 100%);
    height: 120px;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.auth-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-logo-container {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-logo {
    width: 50px;
    height: 50px;
}

.auth-body {
    padding: 3.5rem 2rem 2rem;
}

.auth-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--dark-gray-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form {
    max-width: 90%;
    margin: 0 auto;
}

.form-floating > label {
    padding-right: 1rem;
}

.form-floating > .form-control {
    padding: 1rem 1rem;
    height: calc(3.5rem + 2px);
    line-height: 1.5;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--dark-gray-light);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider::before {
    margin-left: 1rem;
}

.auth-divider::after {
    margin-right: 1rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--rocket-red);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.validation-summary-errors {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius-sm);
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.validation-summary-errors ul {
    margin: 0;
    padding-right: 1rem;
}

.field-validation-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.input-validation-error {
    border-color: #dc3545;
}

.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input:checked {
    background-color: var(--rocket-red);
    border-color: var(--rocket-red);
}

.auth-social-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: var(--border-radius-sm);
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    color: var(--dark-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.auth-social-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: var(--dark-gray);
}

.auth-social-button i {
    font-size: 1.25rem;
}

/* تأثير تفاعلي للأزرار */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}
