/* style/login.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #1A202C;
    --bg-light: #f5f5f5;
    --bg-dark: #1A202C;
    --border-color: #e0e0e0;
    --accent-color: #ff4d4d; /* For alerts/promotions */
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.page-login .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-login section {
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-login h1, .page-login h2, .page-login h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-login h1 {
    font-size: 3.2em;
    color: var(--text-light);
}

.page-login h2 {
    font-size: 2.5em;
}

.page-login h3 {
    font-size: 1.8em;
}

.page-login p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
}

/* Hero Section */
.page-login .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), #2c3e50);
}

.page-login .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-login .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-login .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light);
}

.page-login .hero-content p {
    font-size: 1.3em;
    color: #e0e0e0;
}

.page-login .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-login .cta-button:hover {
    background: #e6b800;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Login Form Section */
.page-login .login-form-section {
    background-color: var(--bg-light);
    border-top: 5px solid var(--secondary-color);
    padding: 80px 0;
}

.page-login .login-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-login .form-group {
    margin-bottom: 25px;
}

.page-login .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

.page-login .form-group input[type="text"],
.page-login .form-group input[type="password"] {
    width: calc(100% - 20px);
    padding: 15px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login .form-group input[type="text"]:focus,
.page-login .form-group input[type="password"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

.page-login .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.page-login .remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.page-login .forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login .forgot-password:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-login .submit-button {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 5px;
    font-size: 1.25em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login .submit-button:hover {
    background-color: #0d121b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-login .new-user-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

.page-login .new-user-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login .new-user-prompt a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Benefits Section */
.page-login .benefits-section {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.page-login .benefits-section h2 {
    color: var(--primary-color);
}

.page-login .benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login .benefit-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login .benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.page-login .benefit-item .benefit-icon {
    width: 100%; /* Ensure images are large enough */
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login .benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.page-login .benefit-item p {
    font-size: 1em;
    color: #555;
    text-align: center;
}

/* Security Tips Section */
.page-login .security-tips-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-login .security-tips-section h2 {
    color: var(--secondary-color);
}

.page-login .security-tips-section p {
    color: #e0e0e0;
}

.page-login .security-tips-section ul {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-login .security-tips-section ul li {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-login .security-tips-section ul li strong {
    color: var(--secondary-color);
}

.page-login .security-illustration {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 50px auto 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Troubleshooting Section */
.page-login .troubleshooting-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.page-login .troubleshooting-section h2 {
    color: var(--primary-color);
}

.page-login .troubleshooting-section ol {
    list-style: decimal;
    padding-left: 25px;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-login .troubleshooting-section ol li {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.8;
}

.page-login .troubleshooting-section ol li strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-login .faq-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.page-login .faq-section h2 {
    color: var(--primary-color);
}

.page-login .faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-login .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-login .faq-question:hover {
    background: var(--bg-light);
}

.page-login .faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
    text-align: left;
}

.page-login .faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-login .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.page-login .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #f9f9f9;
    color: #444;
}

.page-login .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.page-login .faq-answer p {
    margin: 0;
    text-align: left;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login h1 {
        font-size: 2.8em;
    }
    .page-login h2 {
        font-size: 2em;
    }
    .page-login .benefit-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-login .hero-section {
        padding: 60px 15px;
    }
    .page-login .cta-button {
        padding: 12px 30px;
        font-size: 1.1em;
    }
    .page-login .login-form {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-login h1 {
        font-size: 2.2em;
    }
    .page-login h2 {
        font-size: 1.8em;
    }
    .page-login h3 {
        font-size: 1.4em;
    }
    .page-login p {
        font-size: 1em;
    }
    .page-login section {
        padding: 40px 0;
    }
    .page-login .hero-section {
        padding: 50px 15px;
    }
    .page-login .hero-content p {
        font-size: 1.1em;
    }
    .page-login .login-form-section {
        padding: 50px 0;
    }
    .page-login .login-form {
        margin: 20px auto;
        padding: 25px;
    }
    .page-login .form-group input[type="text"],
    .page-login .form-group input[type="password"] {
        padding: 12px 10px;
    }
    .page-login .submit-button {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-login .form-options {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .page-login .forgot-password {
        margin-top: 10px;
    }
    .page-login .benefit-grid {
        grid-template-columns: 1fr;
    }
    .page-login .benefit-item {
        padding: 25px;
    }
    .page-login .security-tips-section ul,
    .page-login .troubleshooting-section ol {
        padding-left: 20px;
        margin: 30px auto;
    }
    .page-login .security-tips-section ul li,
    .page-login .troubleshooting-section ol li {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login .faq-question {
        padding: 15px 20px;
    }
    .page-login .faq-question h3 {
        font-size: 1.1em;
    }
    .page-login .faq-toggle {
        font-size: 1.8em;
    }
    .page-login .faq-answer {
        padding: 0 20px;
    }
    .page-login .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login h1 {
        font-size: 1.8em;
    }
    .page-login h2 {
        font-size: 1.6em;
    }
    .page-login .hero-content p {
        font-size: 1em;
    }
    .page-login .cta-button {
        padding: 10px 25px;
        font-size: 1em;
    }
    .page-login .login-form {
        padding: 20px;
    }
    .page-login .submit-button {
        font-size: 1em;
    }
    .page-login .new-user-prompt {
        font-size: 0.95em;
    }
    .page-login .faq-question h3 {
        font-size: 1em;
    }
    .page-login .faq-toggle {
        font-size: 1.5em;
    }
}