/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background-color: #FFB81C; /* Pantone 116C (Yellow) as vibrant background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease-in-out;
}

form {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    border: 4px solid #9E2A2B; /* Pantone 7628C (Red) border for bold contrast */
    transition: transform 0.3s ease-in-out;
}

h1 {
    text-align: center;
    color: #9E2A2B; /* Pantone 7628C (Red) for heading */
    margin-bottom: 20px;
    font-weight: 700;
}

label {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
input[type="file"],
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 2px solid #9E2A2B; /* Pantone 7628C (Red) for inputs */
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

input:focus, select:focus {
    border-color: #FFB81C; /* Pantone 116C (Yellow) focus border */
    outline: none;
    box-shadow: 0 0 8px rgba(255, 184, 28, 0.5);
    transform: scale(1.05); /* Add a slight zoom effect */
}

button {
    background-color: #9E2A2B; /* Pantone 7628C (Red) for button */
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    font-weight: 600;
}

button:hover {
    background-color: rgb(160, 0, 37); /* Darker red on hover */
    transform: scale(1.05);
}
.signature-container {
    width: 100%; /* Full width */
    max-width: 350px; /* Prevents excessive stretching */
    border: 2px solid #9E2A2B;
    display: flex;
    justify-content: center;
    align-items: center;
}

#signature-pad {
    width: 100%; /* Make canvas flexible */
    height: auto; /* Maintain aspect ratio */
    aspect-ratio: 7 / 3; /* Ensures proper height */
}

@media (max-width: 480px) {
    .signature-container {
        max-width: 100%; /* Slightly smaller on very small screens */
    }
}

/* Styling for the Clear Signature button */
#clear-signature {
    background-color: rgb(255, 192, 67); /* Soft warm background */
    color: #9E2A2B; /* Pantone 7628C (Red) for text */
    font-size: 14px;
    padding: 10px 15px;
    border: 2px solid #9E2A2B;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
}

#clear-signature:hover {
    background-color: #FFD580; /* Soft orange-yellow for a warm effect */
    color: #A00028; /* Slightly darker red for contrast */
    transform: scale(1.05);
}

/* Alert styles */
.alert {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.back-to-login {
    display: block;
    color: #9E2A2B; /* Pantone 7628C (Red) for link */
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.back-to-login:hover {
    color: #FFB81C; /* Pantone 116C (Yellow) on hover */
    transform: scale(1.05);
}

.error-msg {
    font-size: 12px;
    color: red;
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
    font-weight: 500;
}

#disclaimer-message {
    color: red;
    opacity: 0.5;
    font-size: 12px;
    margin-bottom: 10px;
    text-align: center;
}