/* Font Family */
* {
    font-family: 'Cairo', sans-serif;
}

/* Auth Body Background */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1);
        filter: brightness(0.7);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(0.8);
    }
}

/* Fuel Truck Animation */
.fuel-truck-animation {
    position: absolute;
    bottom: 10%;
    left: -100px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
    animation: truckMove 15s linear infinite;
    z-index: 1;
}

@keyframes truckMove {
    0% {
        left: -100px;
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-20px);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(0);
    }
}

/* Fuel Pump Animation */
.fuel-pump-animation {
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.2);
    animation: pumpPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pumpPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.3;
    }
}

/* Fuel Drops Animation */
.fuel-drops {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.drop {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.8) 0%, rgba(255, 150, 0, 0.4) 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    animation: dropFall linear infinite;
    opacity: 0.6;
}

.drop-1 {
    left: 10%;
    animation-duration: 3s;
    animation-delay: 0s;
}

.drop-2 {
    left: 30%;
    animation-duration: 4s;
    animation-delay: 1s;
}

.drop-3 {
    left: 50%;
    animation-duration: 3.5s;
    animation-delay: 0.5s;
}

.drop-4 {
    left: 70%;
    animation-duration: 4.5s;
    animation-delay: 1.5s;
}

.drop-5 {
    left: 90%;
    animation-duration: 3.8s;
    animation-delay: 0.8s;
}

@keyframes dropFall {
    0% {
        top: -50px;
        transform: rotate(-45deg) translateX(0);
        opacity: 0.6;
    }
    50% {
        transform: rotate(-45deg) translateX(30px);
        opacity: 0.8;
    }
    100% {
        top: 100vh;
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: cardSlideIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-icon {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 15px;
    animation: logoPulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.auth-logo h2 {
    font-weight: 700;
    color: #333;
    margin: 0;
    font-size: 32px;
}

.auth-logo p {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

/* Form Styles */
.auth-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.auth-form .input-group {
    margin-bottom: 20px;
}

.auth-form .input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px 0 0 10px;
    width: 45px;
    justify-content: center;
}

.auth-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Remember Me */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #666;
    font-size: 14px;
}

/* Submit Button */
.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-auth:hover::before {
    width: 300px;
    height: 300px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 126, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Home Button */
.btn-home {
    background: transparent;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    color: #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-home:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-home:hover::before {
    left: 0;
}

.btn-home:active {
    transform: translateY(0);
}

.btn-home i {
    transition: transform 0.3s ease;
}

.btn-home:hover i {
    transform: translateX(-3px);
}

/* Link to Register/Login */
.auth-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    animation: alertSlideIn 0.4s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Validation Errors */
.text-danger {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.role-option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.role-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.role-option input[type="radio"] {
    display: none;
}

.role-option input[type="radio"]:checked + .role-content {
    color: #667eea;
}

.role-option input[type="radio"]:checked ~ .role-content {
    color: #667eea;
}

.role-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.role-content {
    pointer-events: none;
}

.role-content i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    color: #667eea;
}

.role-content label {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .fuel-truck-animation {
        font-size: 50px;
    }

    .fuel-pump-animation {
        font-size: 80px;
    }

    .role-selection {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

