/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #4f93e6, #1c22c7);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container Styles */
.login-container,
.landing-container,
.elevator-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.login-box,
.landing-box,
.elevator-panel {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-box {
    max-width: 400px;
    width: 100%;
}

.landing-box {
    max-width: 600px;
}

.elevator-panel {
    width: 250px;
}

h1, h2 {
    margin-bottom: 20px;
    color: #333;
}

p {
    margin-bottom: 30px;
    color: #555;
}

/* Input Field and Button Styling */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 10px;
    padding-top: 10px; /* Extra padding for the label */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s, padding-top 0.3s, padding-bottom 0.3s;
}

input:focus {
    border-color: #1c22c7;
}

label {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #999;
    background-color: white;
    padding: 0 5px;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    font-size: 16px;
}

input:focus + label,
input:not(:placeholder-shown) + label {
    top: 0;
    left: 10px;
    font-size: 12px;
    color: #1c22c7;
    padding: 0 5px;
}

/* Button Styles for Login and Landing Pages */
.btn {
    width: 100%;
    padding: 12px;
    background-color: #1c22c7;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3b49e6;
}

.btn:active {
    background-color: #1a1f7a;
}

/* Error Message */
#error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Elevator Panel Specific Styles */
.button-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

/* Button Styles for Elevator Panel */
.btn.floor {
    background-color: #1c22c7;
}

.btn.door {
    background-color: #4f93e6;
}

.btn.alarm {
    background-color: #e63946;
}

.btn.alarm:hover {
    background-color: #d62839;
}

.btn.alarm:active {
    background-color: #9c1c28;
}

/* Adjust font-size for functional buttons in the elevator panel */
.btn.door, 
.btn.alarm {
    font-size: 14px;
}

.setup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.setup-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.qr-code {
    margin: 20px 0;
}

.qr-code img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}
