:root {
    --deep-blue: #1F2D68;
    --medium-blue: #283D84;
    --light-blue: #0099C7;
    --yellow: #FAC737;
    --grey: #DFE1E3;
    --green: #07A893;
    --ocean-blue: #146EA3;
    --pink: #E30787;
    --bright-purple: #B326FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--deep-blue);
    min-height: 100vh;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--medium-blue) 100%);
}


.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
    max-width: 1400px;
    width: 100%;
    text-align: center;
}

.centered-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
}

h1 {
    color: var(--deep-blue);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700
}

h2 {
    color: #000;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome {
    color: var(--medium-blue);
    margin-bottom: 3rem;
    font-size: 1.1rem
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.nav-item {
    display: block;
    padding: 0.2rem;
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.nav-item:hover {
    transform: translateY(-1px)
}

.nav-blue {
    background: linear-gradient(135deg, var(--light-blue), var(--ocean-blue))
}

.nav-blue:hover {
    box-shadow: 0 15px 30px rgba(0, 153, 199, .4)
}

.nav-accent {
    background: linear-gradient(135deg, var(--pink), var(--bright-purple))
}

.nav-accent:hover {
    box-shadow: 0 15px 30px rgba(227, 7, 135, .4)
}

.nav-support {
    background: linear-gradient(135deg, var(--green), var(--ocean-blue))
}

.nav-support:hover {
    box-shadow: 0 15px 30px rgba(7, 168, 147, .4)
}

.nav-grid a {
    text-decoration: none;
}

.logout-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.logout-btn::part(base) {
    border-radius: 10px;
    padding: .2rem 0.8rem;
    font-size: 1rem;
    transition: all .3s ease;
}

.logout-btn:hover::part(base) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.login-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    width: 100vw;
    /* Ensure it takes full viewport width */
}

.logo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 90vh;
    padding-left: 8rem;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.logo-section h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

.logo-section h2 {
    color: #f1f1f1;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    text-align: left;
}


.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom-left-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
    width: 50%;
    /* Adjust width for better balance */
    height: 80vh;
    /* Set height to 80% of viewport height */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align content to the top */
    padding-top: 30vh;
    /* Add top padding to visually center content if needed */
}

.form-group {
    margin-bottom: 1.5rem
}

label {
    display: block;
    margin-bottom: .5rem;
    color: var(--medium-blue);
    font-weight: 600
}

input[type=text] {
    padding-bottom: 40px;
}

input[type=password] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--grey);
    border-radius: 10px;
    font-size: 1rem;
    transition: all .3s ease;
    background: #fff
}

input[type=text]:focus,
input[type=password]:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(0, 153, 199, .15)
}

.error {
    color: var(--pink);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500
}

/* Responsive grid breakpoints */
@media (min-width: 480px) {
    .nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .nav-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.nav-item::part(base) {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-item-blue::part(base) {
    background: linear-gradient(135deg, var(--light-blue), var(--ocean-blue));
    color: white;
}

.nav-item-accent::part(base) {
    background: linear-gradient(135deg, var(--pink), var(--bright-purple));
    color: white;
}

.nav-item-support::part(base) {
    background: linear-gradient(135deg, var(--green), var(--ocean-blue));
    color: white;
}

.nav-item-voice::part(base) {
    background: linear-gradient(135deg, var(--yellow), var(--pink));
    color: white;
}

/* Login form specific styles */
.login-container sl-input {
    width: 40%;
    margin: 0 auto 1rem auto;
    display: block;
}

.login-container sl-input::part(base) {
    width: 100%;
}

.login-button {
    width: 40% !important;
    margin: 0 auto;
    display: block;
}

.login-button::part(base) {
    width: 100%;
}