﻿/* Basic Reset and Font */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #4A4A4A;
}

/* Background Pattern */
.background {
    background-color: #EFEFEF;
    background-image: radial-gradient(#dcdcdc 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

body {
    background-image: url('@UrlHelper.GetFullUrl("/publicSite/infoBackground.png")');
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
    box-shadow: 0 0 0 1000px #f0f0f0 inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* Card Container */
.card-container {
    width: 100%;
    max-width: 500px;
}

/* The Main Card */
.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

/* Header Section */
.header {
    background-color: #2D604C;
    padding: 40px 0;
    /* --- Centering the logo using flexbox --- */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 250px;
    height: auto;
    /*content: url('https://i.imgur.com/Islamconnect-logo-example.png');*/ /* Replace with your logo path */
}

/* Main Content Area */
.content {
    padding: 40px;
}

.headline {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.4;
    color: #4A4A4A;
}

/* Form Section */
.form-section {
    width: 100%;
    margin-top: 20px;
}

/* Updated input field styling */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: none;
    background-color: #F0F0F0;
    border-radius: 10px;
    font-size: 1em;
    box-sizing: border-box;
    display: block;
}

    /* New CSS to prevent focus behavior */
    .form-control:focus {
        background-color: #F0F0F0;
        outline: none;
        box-shadow: none;
    }

/* Hide the labels generated by `@Html.LabelFor` to match the design */
.form-group > label {
    display: none;
}

/* Validation message styling */
.text-danger {
    color: #E74C3C;
    font-size: 0.8em;
    margin-top: 5px;
    text-align: left;
    display: block;
}

/* Styling for the password toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/V2zX6wT.png'); /* Placeholder for the eye icon */
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* Checkbox and Label */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
    width: 100%;
}

    .checkbox-container input[type="checkbox"] {
        margin-right: 10px;
    }

    .checkbox-container label {
        font-size: 0.9em;
        color: #777;
    }

/* Register Button */
.btn-primary {
    width: 100%;
    background-color: #2D604C;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .btn-primary:hover {
        background-color: #1F4535;
    }

/* Login Link */
.login-link-container {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 20px;
    font-size: 0.9em;
    color: #4A4A4A;
}

    .mt-3 > a {
        color: #55957C;
        text-decoration: none;
        font-weight: 600;
    }

        .mt-3 > a:hover {
            text-decoration: underline;
        }

/* Footer Note */
.footer-note {
    background-color: #F8F8F8;
    padding: 20px;
    font-size: 0.8em;
    color: #999;
    border-top: 1px solid #EAEAEA;
}
