/* Base Layout - Modern with Gradient */
.login-page {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a1f3d 0%, #102a4d 50%, #1a3a5f 100%);
    min-height: 100vh;
    padding: 15px 20px 0px 20px;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding-top: 5vh;
}

.login-title {
    text-align: center;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: 2px;
    width: 100%;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

/* Banner */
.login-banner {
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin-bottom: 15px;
}

.login-banner h1 {
    font-size: 24px;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Feature Icons Grid - One Row, Four Columns */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px; 
    margin: 20px 0 auto;
    text-align: center;
}

.features {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
}

.features p {
    font-size: 18px;
    letter-spacing: 2px;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    color: #E5E7EB;
    margin-top: 15px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease-in-out;
    max-width: 150px;
}

.feature p {
    font-size: 16px;
    font-weight: 600;
    color: #E5E7EB;
}

.feature i {
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.feature:hover {
    transform: scale(1.1);
}

/* Login form card */
.login-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 10px 20px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 15px;
}

/* Label */
.input-group label {
    font-weight: bold;
    color: black;
    margin-bottom: 5px;
}

/* Input Wrapper */
.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 10px;
    color: #555;
    font-size: 16px;
}

/* Input  with Focus */
.login-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.login-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.login-input:hover {
    border-color: #aaa;
}

/* Login button */
.login-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 14px;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Sign-up text */
.login-text {
    margin-top: 10px;
    font-size: 0.9rem;
}

.login-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.login-link:hover {
    text-decoration: underline;
} 

/* Error message */
.login-error-msg-holder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-error-msg {
    width: 90%;
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #8a0000;
    border: 1px solid #8a0000;
    background-color: #ffe3e3;
    opacity: 1;
    border-radius: 6px;
    margin-bottom: 15px;
  }

/* Responsive Design */
@media (max-width: 768px) {
    .login-title {
        font-size: 35px;
    }

    /* Make layout stacked */
    .login-container {
        padding-top: 8vh;
    }

    .login-banner {
        text-align: center;
    }

    .login-banner h1 {
        font-size: 25px;
    }

    .features {
        padding-top: 10px;
    }

    .features p {
        font-size: 14px;
    }

    /* Stack features grid and reduce size */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 500px;
        justify-items: center;
        align-items: center; 
    }

    .feature i {
        font-size: 1.8rem;
    }

    .feature p {
        font-size: 14px;
    }

    /* Move login card to bottom */
    .login-card {
        max-width: 90%;
    }

    .login-btn {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 30px;
    }

    .login-banner h1 {
        font-size: 18px;
    }

    .login-banner p {
        font-size: 12px;
    }

    .login-container {
        padding-top: 3vh;
    }

    .features {
        padding-top: 0px;
    }

    .feature i {
        font-size: 1.5rem;
    }

    .feature p {
        font-size: 12px;
    }

    .login-card {
        padding: 15px;
    }

    .login-input {
        font-size: 14px;
    }

    .login-btn {
        font-size: 14px;
    }
}
