/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body Styling */
body {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
    background-color: #1e3a8a; /* Dark blue background */
}

/* Container Styling */
.login-container, .voter-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    width: 500px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

/* .voter-container {
    width: 40vw; 
    max-width: 500px;
    height: auto;
    padding: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
} */

.voter-container {
    width: 80vw;
    height: 90vh;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.voter-details-column {
    width: 48%;
}

.voter-details-container input, select {
    width: 100%;
    height: 40px;
    margin-bottom: 15px;
    font-size: 16px;
    padding: 5px;
}

.voter-details-container button {
    width: 100%;
    height: 45px;
    background: green;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.voter-details-container button:hover {
    background: darkgreen;
}

.voter-details-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    background: red;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
}

.voter-details-logout:hover {
    background: darkred;
}

/* input, select {
    height: 35px;
    font-size: 14px;
} */

/* .voter-container {
    width: 600px;
    padding: 30px;
    text-align: left;
} */

/* Heading */
h1 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Input Fields */
.input-box {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.input-box label {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.input-box input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    outline: none;
}

.input-box input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Submit Button */
button {
    width: 100%;
    background: #28a745;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

button:hover {
    background: #218838;
}

/* Error Message Styling */
.error-message {
    background-color: #ff4d4d;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    display: none;
}

.error-message.show {
    display: block;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: red;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
}

.logout-btn:hover {
    background: darkred;
}

