body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    perspective: 1000px;
}

.form-container {
    background-color: #1e1e1e;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 320px;
    text-align: center;
    transition: transform 0.3s ease;
}

.logo {
    font-size: 2em;
    white-space: nowrap;
    margin-bottom: 20px;
    color: #d4af37;
    text-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37;
}

h2 {
    margin-bottom: 30px;
    font-weight: 300;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    color: #d4af37;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 2px solid #555;
    border-radius: 5px;
    color: #fff;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #d4af37;
    background: #333;
}

/* Autofill styling to maintain dark theme */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #2a2a2a inset;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid #555;
    border-radius: 5px;
}

.input-group input:-webkit-autofill:focus {
    border-color: #d4af37;
    -webkit-box-shadow: 0 0 0px 1000px #333 inset;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #d4af37;
    border: none;
    border-radius: 5px;
    color: #121212;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background: #f7c948;
    box-shadow: 0 0 15px #f7c948;
}

.toggle-link {
    margin-top: 20px;
    font-size: 0.9em;
}

.toggle-link a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.toggle-link a:hover {
    text-decoration: underline;
}

.message-area {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 5px;
    font-size: 0.9em;
    min-height: 20px;
    display: block;
    text-align: center;
}

.message-area.error {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
}

.message-area.success {
    color: #4dff4d;
    background-color: rgba(77, 255, 77, 0.1);
    border: 1px solid #4dff4d;
}

.message-area.info {
    color: #d4af37;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
}
