﻿/* login page */
.login-card {
    max-width: 350px;
    margin: 60px auto;
    padding: 30px 20px;
    background-color: transparent;
    border-radius: 10px;
    text-align: center;
}

/* login title */
.login-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* forgot password text */
.login-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
    color: black;
}

    .login-subtitle .forgot-password-link {
        color: #0d6efd;
        text-decoration: none;
    }

        .login-subtitle .forgot-password-link:hover {
            color: #165979;
            text-decoration: underline;
        }

/* login form */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0;
    width: 100%;
    margin-bottom: 20px;
}

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form input[type="email"] {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        border: 1px solid #000;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 16px;
    }

    .login-form input:hover {
        cursor: auto;
    }

.remember-form {
    width: 100%;
    gap: 0;
    justify-content: space-between
}
/* login form label */
.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
}

    .login-form .remember-label {
        width: 80%;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        padding: 5px 15px;
        background: white;
    }

/* login input field */
.login-control {
    font-size: 14px;
    color: var(--primary-color);
    margin: 0;
    cursor: pointer; /* Makes the label clickable */
    user-select: none;
    line-height: 18px; /* Matches checkbox height for perfect alignment */
}

    .login-control:hover {
        color: var(--secondary-color); /* Darker hover effect for the label */
    }

input[type="checkbox"].left-aligned {
    appearance: none; /* Remove default browser styling */
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color); /* Match your branding color */
    border-radius: 4px; /* Slightly rounded corners */
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    transition: all 0.3s ease;
    margin: 0; /* Remove default margins */
}

    input[type="checkbox"].left-aligned:checked {
        background-color: var(--primary-color); /* Fill the checkbox when checked */
        border-color: var(--primary-color);
    }

        input[type="checkbox"].left-aligned:checked::after {
            content: "✓";
            position: absolute;
            color: #fff; /* White checkmark */
            font-size: 11px;
            line-height: 14px;
            text-align: center;
            left: 2px;
            top: 0;
        }

.login-button {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    margin: 10px 0 10px;
    font-size: 16px;
    color: var(--background-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.login-buttons .logo-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    width: 100%;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #8C8C8C;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #5E5E5E;
    margin: 10px 0;
    box-sizing: border-box;
    max-width: 400px;
    min-width: min-content;
}

    .login-buttons .logo-button img {
        height: 20px;
        width: 20px;
        vertical-align: middle;
        margin-right: 12px;
    }

    .login-buttons .logo-button span {
        display: inline-block;
        vertical-align: middle;
    }

.recover-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.spinner {
    margin: 20px auto;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.left-aligned {
    float: left
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

