﻿body {
    font-family: sans-serif,'Segoe UI', Tahoma, Geneva, Verdana;
    background-color: #f4f4f4;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
    }

.form-control {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.btn-primary {
    width: 100%;
    background-color: #0A1E3F;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

.forgot-password {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

@media (max-width: 480px) {
    .login-container {
        width: 90%;
    }
}

.form-container {
    /*    background-color: #E9E9E9;

*/
    position: absolute; /* Allows stacking */
    top: 0; /* Ensures it's at the top */
    left: 50%; /* Centers horizontally */
    transform: translateX(-50%); /* Adjusts for centering */
    transition: opacity 0.3s ease-in-out;
    border: 1px solid #D0D0D0;
    border-radius: 5px;
    min-width: 400px;
    max-width: 400px;
    padding: 20px;
    margin: 0 auto;
}
.hidden {
    visibility: hidden;
}
.button-container {
    display: flex;
    justify-content: space-between; /* Space between buttons */
    gap: 10px; /* Adjust spacing as needed */
    margin-top: 10px; /* Add some space above */
}
h2 {
    color: #000;
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 15px;
    text-decoration: underline;
}

canvas {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #DDD;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

hr {
    border: none;
    height: 1px;
    background-color: #D0D0D0;
    margin: 20px 0;
}

.upload-section {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.upload-btn {
    background-color: white;
    border: 1px solid #DDD;
    border-radius: 5px;
    padding: 15px 0;
    width: 75%;
    text-align: center;
    cursor: pointer;
}

    .upload-btn img {
        width: 24px;
        height: 24px;
    }

.upload-label {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    text-decoration: underline;
}


/* Mobile responsive improvements */
@media (max-width: 768px) {
    /* Fix for content being cut off on the left */
    .app-content {
        padding: 1rem;
        overflow-x: hidden;
    }

    /* Ensure forms fit within mobile screens */
    .login-container,
    .customer-details-container,
    .employer-details-container,
    .product-details-container,
    .payment-details-container,
    .additional-documents-container,
    .e-sign-container {
        padding: 1rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
        box-sizing: border-box;
    }

    /* Adjust form controls for better mobile display */
    .form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Better handling of header content on mobile */
    .header-content {
        padding: 0.75rem;
    }

    /* Make sure buttons don't overflow */
    .navigation-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

        .navigation-buttons button {
            flex: 1;
            min-width: 100px;
        }

    /* Handle canvas element for signature pad */
    .canvas-container canvas {
        width: 100% !important;
        height: auto !important;
    }
}

/* Base improvements for all screen sizes */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
}

.form-group {
    width: 100%;
}
