/* ------------------------------------------- */
/*               COMMON STYLES                */
/* ------------------------------------------- */

/* Keep only page-specific styles. Global layout from mainpage.css */

/* Responsive navigation styles */
@media (max-width: 900px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 10px 20px;
    }
    
    nav ul li {
        flex: 1 1 30%;
        text-align: center;
        padding: 5px 10px;
    }
}

@media (max-width: 700px) {
    nav ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }
}

@media (max-width: 500px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li::before {
        content: "|";
        padding-right: 5px;
    }
    
    nav ul li::after {
        content: "|";
        padding-right: 5px;
    }
}

/* ------------------------------------------- */
/*          LOGIN PAGE SPECIFIC STYLES        */
/* ------------------------------------------- */

/* Main section for the login page */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 70vh;
}

/* Login panel styling */
.login-panel {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.login-panel .panel-inner {
    padding: 40px 30px;
    text-align: center;
}

/* Login title styling */
.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* Form styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.login-form .btn{
    text-align: center;
}


/* Style for email and password inputs */
.login-form input[type="email"],
.login-form input[type="password"] {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(10,20,34,0.6);
    font-size: 1em;
    color: var(--text);
    transition: all 0.3s ease;
    text-align: center;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(110, 255, 214, 0.1);
    background: rgba(10,20,34,0.8);
}

.login-form input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* Password field wrapper */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    flex: 1;
}

/* Enhanced button styling */
.login-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(110, 255, 214, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(110, 255, 214, 0.4);
    filter: brightness(1.1);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(110, 255, 214, 0.3);
}

/* Message styling */
.message {
    margin-bottom: 25px;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.95em;
    background-color: rgba(255, 75, 75, 0.1);
    color: #ff9a9a;
    border: 1px solid rgba(255, 75, 75, 0.25);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

/* Extra options styling */
.extra-options {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    gap: 15px;
}

.extra-options a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.extra-options a:hover {
    color: var(--accent);
    background: rgba(110, 255, 214, 0.1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-panel .panel-inner {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.8em;
    }
    
    .extra-options {
        flex-direction: column;
        gap: 10px;
    }
}

/* Optional footer styling */
footer {
    margin-top: auto;
}
