html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;

}

h1 {
    color: var(--font-color); 
    font-weight: var(--bold-font-weight);
    font-size: var(--heading-h1-font-size);
    font-family: var(--font-title-family);
}

h2 {
    color: var(--font-color); 
    font-weight: var(--bold-font-weight);
    font-size: var(--heading-h2-font-size);
    font-family: var(--font-title-family);
}


h3 {
    color: var(--font-color); 
    font-weight: var(--bold-font-weight);
    font-size: var(--heading-h3-font-size);
    font-family: var(--font-title-family);
}

h4 {
    color: var(--font-color);
    font-weight: var(--normal-font-weight);
    font-size: var(--heading-h4-font-size);
    font-family: var(--font-title-family);
}

h5 {
    color: var(--font-color);
    font-weight: var(--light-font-weight);
    font-size: var(--heading-subtitle-font-size);
    font-family: var(--font-title-family);
}

a {
    color: var(--secondary-color);
    font-weight: var(--normal-font-weight);
    font-size: var(--body-font-size);
    font-family: var(--font-body-family);
}

p {
    color: var(--font-color);
    font-weight: var(--normal-font-weight);
    font-size: var(--body-font-size);
    font-family: var(--font-body-family);
}

/* Label styling */
label {
    font-weight: var(--normal-font-weight);
    font-size: var(--body-font-size);
    font-family: var(--font-body-family);
    margin-top: 20px; /* Increased space above labels */
    margin-bottom: 5px; /* Space below labels for better separation */
    text-align: left;
    color: var(--font-color); /* Changed to font-color */
}

/* Span styling */
span {
    font-weight: var(--normal-font-weight);
    font-size: var(--body-font-size);
    font-family: var(--font-body-family);
}

:focus {
    outline: 0 !important;
}

.input-validation-error {
    border: 1px solid darkred;
}

form {
    width: 100%;
}

/* Custom styles for Identity pages */
body {
    
}

.identity-container {
    background-color: #FBF7FE; /* Form background color */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(120, 81, 169, 0.15);
    padding: 2.5rem;
    margin: 0 auto; /* Center horizontally */
    max-width: 450px;
    width: 100%;
}

/* Layout fixes for _Layout.cshtml */
.container.mt-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
}

    .container.mt-4 > .row {
        width: 100%;
    }

.identity-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--font-color); /* Changed to font-color */
    font-weight: 600;
}

/* Logo styles */
.login-logo {
    margin: 0 auto 1.5rem auto;
    max-width: 180px;
    height: auto;
}

/* Primary buttons */
.identity-btn-primary {
    background-color: #7851A9 !important; /* Button background */
    border-color: #7851A9 !important;
    color: #FBF7FE !important; /* Button text */
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .identity-btn-primary:hover,
    .identity-btn-primary:focus {
        background-color: #6a449a !important;
        border-color: #6a449a !important;
        box-shadow: 0 0 0 0.25rem rgba(120, 81, 169, 0.25);
        transform: translateY(-1px);
    }

/* Links */
.identity-link {
    color: #7851A9; /* Link color */
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

    .identity-link:hover {
        color: #6a449a;
        text-decoration: underline;
    }

/* Form controls */
.identity-form-control {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--primary-color); /* Keep border color as primary */
    background-color: white !important;
    transition: all 0.3s ease;
    color: var(--font-color); /* Text inside inputs should use font-color */
}

    .identity-form-control:focus {
        border-color: var(--primary-color); /* Keep border color as primary */
        box-shadow: 0 0 0 0.25rem rgba(120, 81, 169, 0.15);
    }

/* Floating labels for modern input style */
.identity-floating-label {
    position: relative;
}

    .identity-floating-label label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: 0.75rem 1rem;
        pointer-events: none;
        border: 1px solid transparent;
        transform-origin: 0 0;
        transition: opacity .15s ease-in-out, transform .15s ease-in-out;
        color: var(--font-color); /* Changed to font-color */
        margin-bottom: 0;
        z-index: 1; /* Ensure label is above the input */
    }

    .identity-floating-label .form-control:focus ~ label,
    .identity-floating-label .form-control:not(:placeholder-shown) ~ label {
        opacity: .65;
        transform: scale(.85) translateY(-0.75rem) translateX(0.15rem);
        background-color: #E8E0F2;
        padding: 0 0.5rem;
        height: auto;
        z-index: 2; /* Keep label visible when floating */
    }

    /* Adjust for pre-filled inputs */
    .identity-floating-label .form-control:not(:placeholder-shown) {
        padding-top: 1.25rem;
        padding-bottom: 0.25rem;
    }

/* Card styling */


/* Text colors */
.identity-text-primary {
    color: var(--font-color); /* Changed to font-color */
}

/* Validation styling */
.identity-validation-summary {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Form group spacing */
.identity-form-group {
    margin-bottom: 1.5rem;
}

/* Social login buttons */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-login-btn {
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    border-color: #7851A9;
    color: #7851A9;
}

    .social-login-btn:hover {
        background-color: #7851A9;
        color: #FBF7FE;
    }

/* Divider with text */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--font-color); /* Changed to font-color */
}

    .divider-with-text::before,
    .divider-with-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--primary-color); /* Keep divider line as primary */
    }

    .divider-with-text::before {
        margin-right: 1rem;
    }

    .divider-with-text::after {
        margin-left: 1rem;
    }

/* General text color */
.card-body {
    color: var(--font-color); /* Changed to font-color */
}

/* Enhanced form elements */
.modern-checkbox {
}

    .modern-checkbox .form-check-input {
        transform: scale(0.5); /* Reduce size to 50% */
        border-color: #7851A9;
        cursor: pointer;
    }

        .modern-checkbox .form-check-input:checked {
            background-color: #7851A9;
            border-color: #7851A9;
        }

    .modern-checkbox .form-check-label {
        cursor: pointer;
        font-size: 0.9rem;
        margin-top: 6px;
    }

.forgot-password-link {
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--font-color); /* Changed to font-color */
}


    .forgot-password-link:hover {
        text-decoration: none;
        transform: translateX(2px);
    }

/* Modern action links */
.action-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.action-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(120, 81, 169, 0.2);
    background-color: rgba(251, 247, 254, 0.8);
}

    .action-link .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background-color: rgba(120, 81, 169, 0.1);
        margin-right: 0.8rem;
        transition: all 0.2s ease;
    }

        .action-link .icon i {
            color: var(--primary-color); /* Keep icon color as primary */
            font-size: 1rem;
        }

    .action-link .text {
        color: var(--font-color); /* Changed to font-color */
        font-weight: 500;
        font-size: 0.9rem;
    }

    .action-link:hover {
        background-color: rgba(120, 81, 169, 0.05);
        box-shadow: 0 2px 8px rgba(120, 81, 169, 0.1);
    }

        .action-link:hover .icon {
            background-color: rgba(120, 81, 169, 0.2);
            transform: scale(1.1);
        }



/* Input styling */
input {
    font-weight: var(--normal-font-weight);
    font-size: var(--body-font-size);
    font-family: var(--font-body-family);
    background-color: var(--accent-color);
    color: var(--font-color); /* Changed to font-color */
    padding: 12px;
    border-radius: 10px;
    width:100%;
    border: 1.5px solid var(--primary-color); /* Primary color border */
}


    /* input Placeholder color */
    input::placeholder {
        color: var(--font-color); /* Changed to font-color but with opacity */
        opacity: 0.7; /* Slightly reduce opacity for better visibility */
    }

    input:focus {
        border-color: var(--primary-color); /* Keep border color as primary */
    }

    /* Style for the checkbox */
    input[type="checkbox"] {
        accent-color: var(--primary-color); /* Keep checkbox accent as primary */
        cursor: pointer;
    }


/* Button styling */
button {
    padding: 8px; /* Increased padding for a larger button */
    font-weight: var(--bold-font-weight);
    font-size: var(--button-text-font-size);
    font-family: var(--font-title-family);
    color: #fff;
    width: 100%;
    background-color: var(--primary-color); /* Primary color for the button */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button:hover {
        background-color: var(--secondary-color);
    }




























