﻿:root {
    --primary-color: #f67937;
    --primary-hover: #e55d1f;
    --primary-rgb: 246, 121, 55;
    --auth-bg: #f67937;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Layout Styles */
.layout-auth {
    background: linear-gradient(135deg, var(--auth-bg) 0%, #ff8c5a 100%);
    min-height: 100vh;
}

/*.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}*/

/*.auth-wrapper {
    width: 100%;
    max-width: 450px;
}*/

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: var(--transition);
}

    .auth-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

/* Primary Button Styles */
.btn-primary2 {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .btn-primary2::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: var(--transition);
    }

    .btn-primary2:hover::before {
        left: 100%;
    }

    .btn-primary2:hover {
        background: linear-gradient(135deg, var(--primary-hover) 0%, #d44710 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
    }

    .btn-primary2:active {
        transform: translateY(0);
    }

    .btn-primary2:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Form Control Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    padding: 12px 16px;
    transition: var(--transition);
    background-color: #fff;
}

    .form-control:focus {
        color: #131920;
        background-color: #fff;
        border-color: var(--primary-color);
        outline: 0;
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }

    .form-control:hover:not(:focus) {
        border-color: #c1c7cd;
    }

/* Input Group Styles */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #e1e5e9;
    color: #6c757d;
    transition: var(--transition);
}

.form-control:focus + .input-group-text,
.input-group .form-control:focus ~ .input-group-text {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.05);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

/* Footer Styles */
.auth-footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
}

/* Loading Animation */
.loader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-track {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .auth-main {
        padding: 0.5rem;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .auth-card {
        margin: 0;
        border-radius: 0;
    }
}

/* Animation for page load */
.auth-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus visible for accessibility */
.btn-primary2:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary2 {
    color: #fff;
    background-color: #f67937;
    border-color: #f67937;
}

.auth-main .auth-wrapper.v1 .auth-form {
    flex-direction: column;
    background: unset;
    min-height: 100vh;
    padding: 0px 24px;
    background-size: cover;
    position: relative;
    justify-content: center;
    background-color: #f67937;
}

.form-control:focus, .datatable-input:focus, .custom-select:focus, .dataTable-selector:focus, .dataTable-input:focus {
    color: #131920;
    background-color: #f8f9fa;
    border-color: #f67937;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.1);
}

.btn:hover, .introjs-tooltip .introjs-button:hover {
    color: #f67937;
    text-decoration: none;
    background-color: var(--bs-btn-hover-bg);
    border-color: #f67937;
}

.language-switch-container {
    border-bottom: 1px solid #e9ecef;
}

.password-toggle {
    cursor: pointer;
    border-left: none;
    background: transparent;
}

    .password-toggle:hover {
        background-color: #f8f9fa;
    }

.btn-primary2:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.form-control:focus {
    border-color: #f67937;
    box-shadow: 0 0 0 0.2rem rgba(246, 121, 55, 0.25);
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* RTL Support */
@if (isArabic) {
    <text >
    .rtl-layout .input-group-text {
        border-radius: 0 0.375rem 0.375rem 0;
    }

    .rtl-layout .form-control:not(:last-child) {
        border-radius: 0.375rem 0 0 0.375rem;
    }

    .rtl-layout .text-end {
        text-align: left !important;
    }

    .rtl-layout .me-1, .rtl-layout .me-2 {
        margin-left: 0.25rem !important;
        margin-right: 0 !important;
    }

    </text>
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    animation: fadeIn 0.3s ease-in-out;
}
