* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Sans-serif;
}
body {
    background-color: rgba(104, 44, 207, 0.2);
    color: #333;
}
.top-bar {
    width: 100%;
    background-color: #4d2f83;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    box-sizing: border-box;
}
.bottom-section {
    width: 100%;
    height: calc(100vh - 133px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
}
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    z-index: 30;
    top: 0;
    background-color: white;
    box-shadow: 0 5px 5px -6px rgba(0, 0, 0, 0.3);
}
.logo-container {
    display: flex;
    justify-content: center;
}
.logo {
    width: 150px;
}
.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: auto;
}
.login-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #4d2f83;
}
.form-container {
    background-color: white;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid #D9D9D9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.form-group label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-align: left;
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-submit {
    padding: 12px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4d2f83, #4d2f8399);
    transition: all 0.3s;
}
.btn-submit:hover {
    background-color: #4d2f83;
}
.links {
    margin-top: 10px;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4d2f83;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn-link {
    margin-top: 0px;
}
.btn-link a {
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    border: solid;
    color: rgba(77, 47, 131, 0.8);
    transition: all 0.1s ease-in;
}
.btn-link a:hover {
    color: #4d2f83;
    background: rgba(77, 47, 131, 0.07);
}
@media (max-height: 667px) {
    .bottom-section {
        height: unset;
    }
}
@media (min-height: 740px) {
    .login-title {
        margin-top: -52px;
    }
}
.form-group input.error {
    border-color: rgb(211, 47, 47);
}
.error-message {
    color: rgb(211, 47, 47);
    font-size: 14px;
    display: none;
}
.error-message.show {
    display: block;
}
.error-box {
    padding: 8px 16px;
    border: solid 1px rgb(255, 204, 199);
    border-radius: 8px;
    background: rgb(255, 242, 240);
    display: none;
    align-items: center;
    justify-content: space-between;
}
.error-box.show {
    display: flex;
}
.error-icon {
    line-height: 16px;
    box-sizing: border-box;
    color: white;
    background: rgb(211, 47, 47);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: bold;
}