﻿
.custom-login-card {
    border: none;
    border-radius: 5px;
    background: linear-gradient(145deg, #ffffff, #f0f5ff);
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3); /* Adjusted shadow */
    border-top: 10px solid #0056b3; /* Added top border */
}

.custom-title {
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.custom-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    background: #ffffff;
    transition: all 0.3s ease;
}

    .custom-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
        background: #ffffff;
    }

.custom-input-icon {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    color: #007bff;
    border-radius: 8px 0 0 8px;
    width: 45px;
}

.custom-toggle-btn {
    border: 1px solid #e0e0e0;
    border-left: none;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    color: #007bff;
    padding: 0 15px;
    transition: all 0.3s ease;
}

    .custom-toggle-btn:hover {
        background: #e9ecef;
        color: #0056b3;
    }

.custom-login-btn {
    background: #007bff;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: none;
}

    .custom-login-btn:hover {
        background: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

.warning-text {
    display: none;
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(220, 53, 69, 0.1);
}

.invalid-input {
    border-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2);
}

.valid-input {
    border-color: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.2);
}

/* Add these styles to your login.css */
.custom-login-btn {
    position: relative;
    transition: all 0.3s ease;
}

    .custom-login-btn.loading {
        opacity: 0.7;
        pointer-events: none; /* Prevents clicks while loading */
    }

    .custom-login-btn .spinner {
        display: none;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 20px;
        height: 20px;
        border: 3px solid #fff;
        border-top: 3px solid transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .custom-login-btn.loading .spinner {
        display: block;
    }

    .custom-login-btn.loading span {
        visibility: hidden;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}