:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f5f7ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    text-align: center;
}

.card-body {
    padding: 2rem;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline-secondary {
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.info-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.password-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
}

/* Button Loading Animation Styles */
.btn-loading {
    position: relative;
}

.btn-content {
    transition: all 0.3s ease;
}

.btn-loading .btn-content {
    opacity: 0;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.btn-loading .spinner {
    display: inline-block;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin: 0 3px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Button ripple effect */
.btn-primary .ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .card {
        margin: 0 15px;
    }

    .card-header h4 {
        font-size: 1.25rem;
    }
}

/* Floating labels animation */
.float-label {
    position: relative;
    margin-bottom: 20px;
}

.float-label label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    color: #6c757d;
}

.float-label .form-control:focus~label,
.float-label .form-control:not(:placeholder-shown)~label {
    top: 0;
    left: 12px;
    font-size: 0.75rem;
    padding: 0 5px;
    background: white;
    color: var(--primary-color);
}

.float-label .form-control {
    padding-top: 18px;
    padding-bottom: 6px;
}