/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;  /* Prevent horizontal scrolling */
    overflow-y: auto;    /* Allow vertical scrolling */
}

/* Main Layout */
.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure full viewport height */
}

/* Header - Full width */
header {
    width: 100%;
    padding: 20px;
    background-color: #000; /* Solid black background */
    color: white;
    text-align: center;
    flex-shrink: 0; /* Prevent header from shrinking */
}

/* Footer - Full width */
footer {
    width: 100%;
    padding: 20px;
    background-color: #000; /* Solid black background */
    color: white;
    text-align: center;
    flex-shrink: 0;  /* Prevent footer from shrinking */
    margin-top: auto; /* Ensures footer stays at the bottom */
}

/* Form container style */
.form-container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto; /* Center the form horizontally */
    flex-grow: 1;  /* Allow form to take up remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure the form is vertically centered */
.main-layout > .form-container {
    margin-top: 20px;
}

/* Heading Style */
h2 {
    margin: 0;
    padding-bottom: 5px;
    font-size: 24px;
    text-align: center;
}

/* Input Fields */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;  /* Full width for input fields */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Button */
.form-container button {
    width: 100%; /* Full width for button */
    padding: 12px;
    background-color: #f1c40f;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.form-container button:hover {
    background-color: #e67e22;
}

/* Error and Success Messages */
.form-container .error-message, .form-container .success-message {
    text-align: center;
    margin: 10px 0;
}

.form-container .error-message {
    color: red;
}

.form-container .success-message {
    color: green;
}

/* Phone Number Instruction Message */
.phone-instruction {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    display: none;
}

/* Password Combination Instruction */
.password-instruction {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    display: none;
}

/* Password Mismatch Instruction */
.password-mismatch {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container {
        width: 90%; /* Adjust form width on small screens */
        padding: 15px;
    }

    header, footer {
        padding: 15px;
    }

    /* Adjust button position to move slightly right */
    .form-container button {
        width: calc(100% - 20px);  /* Reduce width slightly to avoid overflow */
        margin-left: 10px;  /* Move button slightly to the right */
    }
}

/* Contact Links Style */
.contact-links {
    display: none;
    margin-top: 10px;
}

.contact-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Pin Section Styling */
.pin-section a {
    color: #007bff;
    text-decoration: none;
}

.pin-section a:hover {
    text-decoration: underline;
}
