:root {
    --primary-blue: #0d6efd;
    --dark-blue: #0b5ed7;
    --light-blue: #cfe2ff;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: rgba(13, 110, 253, 0.1);
    --shadow-medium: rgba(13, 110, 253, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    background: url("/images/bgResetL.jpg") no-repeat center  center fixed;

  
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    display: flex;
    align-items: center;
    padding: 20px;
}

.auth-container {
 
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
}

.auth-header {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--dark-blue) 100%
    );
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.logo-icon i {
    font-size: 2rem;
    color: var(--white);
}

.auth-title {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    position: relative;
    z-index: 2;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 2;
}

.auth-body {
    padding: 2.5rem 2rem;
}

.description {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-blue);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.description i {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.description-text {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-blue);
    font-size: 1rem;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-wrapper {
    position: relative;
}

.form-control {
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3.5rem;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 60px;
    color: #374151;
}

.form-control:focus {
    background: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px var(--shadow-light);
    transform: translateY(-2px);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.95rem;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    font-size: 1.25rem;
    transition: color 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.form-control:focus + .input-icon {
    color: var(--primary-blue);
}

.btn-modern {
    background: linear-gradient(
        135deg,
        var(--primary-blue) 0%,
        var(--dark-blue) 100%
    );
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-modern::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: left 0.6s ease;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--shadow-medium);
    background: linear-gradient(135deg, var(--dark-blue) 0%, #084298 100%);
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:active {
    transform: translateY(-1px);
}

.btn-modern i {
    font-size: 1.25rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    padding: 0 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--light-blue);
    color: var(--dark-blue);
    text-decoration: none;
    transform: translateX(-4px);
}

.back-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-2px);
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert i {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.alert ul li {
    margin-bottom: 0.25rem;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.is-valid {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}

/* Loading animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading i {
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .auth-card {
        border-radius: 8px;
    }

    .auth-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .auth-body {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 70px;
        height: 70px;
    }

    .logo-icon i {
        font-size: 1.75rem;
    }
}

/* Smooth page transition */
.auth-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
