﻿/* ============================================
       SHILUVAH FORM STYLES - Reusable Form CSS
       ============================================ */

/*Body layout */
.body {
    background-color: white;
    font-family: Arial;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    height: 100vh;
    max-height: auto;
    font-size: 18px;
    font-weight: unset;
    margin: 0;
    padding: 48px 0 48px 0;
    background-image: url('custom/login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-color: rgb(255,255,255,0.1);
    backdrop-filter: blur(5px);
}
/* Form Container */
.form-container {
    position: center;
    min-width: 400px;
    max-width: 500px;
    margin: 30px auto;
    padding: 5px 35px;
    background-color: white;
}
.login-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    text-align: center;
}


.register-container {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 5%;
    min-width: 10px;
    padding: 2rem;
    text-align: center;
}

/*logout container*/
.logout-card {
    width: 200px;
    padding: 30px;
    text-align: left;
    border: medium;
    border-radius: 20px;
    background-color: aliceblue;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

    .logo-container img {
        width: 500px;
        height: 100px;
        border-radius: inherit;
        object-fit: contain;
        background-color: white;
        margin-top: 50px;
    }


/* Form Title */
.form-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    margin-bottom: 1.5rem;
}

.login-title {
    text-align: center;
    width: 100%;
    font-weight: 800;
    font-size: 1.5rem;
}

/* Form Styles */
.form {
    width: 100%;
}

/* Form Groups */
.form-group {
    margin-bottom: 0px;
}

    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: bold;
        color: #333333;
        margin-bottom: 8px;
    }

/* Input Fields */
.form-control {
    width: 100%;
    padding: 1px 4px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

    .form-control::placeholder {
        color: #999999;
        font-size: 14px;
    }

    .form-control:focus {
        outline: none;
        border-color: #2d5a3d;
        box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
    }

    .form-control:hover {
        border-color: #a0a0a0;
    }

/* Select Dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Validation Messages */
.text-danger {
    display: block;
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

/* Validation Summary */
div[asp-validation-summary] {
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 4px;
    color: #842029;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

    .checkbox-container label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #333333;
        cursor: pointer;
        margin: 0;
    }

    .checkbox-container .form-check-input {
        width: 16px;
        height: 16px;
        margin: 0;
        cursor: pointer;
        accent-color: #2d5a3d;
    }

    .checkbox-container a {
        color: black;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.2s ease;
    }

        .checkbox-container a:hover {
            color: #1f3d29;
            text-decoration: underline;
        }

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    background-color: #28a745;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-bottom: 10px;
    margin-top: 20px;
    border-radius: 2rem;
}

    .btn-primary:hover {
        background-color: #28a745;
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

/* Secondary Button (Back button) */
.btn-secondary {
    width: 48%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    color: black;
    background-color: #e0e0e0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-secondary:hover {
        background-color: #d0d0d0;
    }

/* Button Group (for Back and Save User buttons) */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

    .button-group .btn-secondary {
        width: 48%;
    }

    .button-group .btn-primary {
        width: 48%;
        margin-bottom: 0;
    }

/* Footer Links */
.footer-links {
    text-align: center;
    margin-top: 20px;
}

    .footer-links p {
        margin: 8px 0;
    }

    .footer-links a {
        color: #0dcaf0;
        text-decoration: none;
        font-size: 14px;
        transition: color 0.2s ease;
        font-weight: normal;
    }

        .footer-links a:hover {
            color: #1f3d29;
            text-decoration: underline;
        }

/* Two Column Layout (for Name/Last Name, Email/Phone, etc.) */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

    .form-row .form-group {
        flex: 1;
        margin-bottom: 0;
    }


/* Additional utility classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

