/* style/login.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #8B0000;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #ffffff;
    --background-dark-card: rgba(0, 0, 0, 0.2);
    --border-color: #e0e0e0;
}

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

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-login__section {
    padding: 60px 0;
    text-align: center;
}

.page-login__section-title {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-login__section-intro {
    font-size: 18px;
    color: var(--text-color-dark);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-login__card {
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-login__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border: 2px solid transparent;
    margin: 10px;
}

.page-login__cta-button--primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

.page-login__cta-button--primary:hover {
    background: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-color-light);
    border-color: var(--secondary-color);
}

.page-login__cta-button--secondary:hover {
    background: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
}

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

.page-login__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 20px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    border-radius: 12px;
    margin-top: -80px;
    padding-top: 100px; /* Adjust for negative margin */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-login__hero-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 20px;
    color: var(--text-color-light);
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

.page-login__hero-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #f9f9f9;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-login__benefit-icon {
    width: 250px; /* Min size 200px */
    height: 187px; /* Maintain aspect ratio for 800x600 */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-description {
    font-size: 16px;
    color: var(--text-color-dark);
    line-height: 1.6;
}

/* How-to-Login Section */
.page-login__how-to-login-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-login__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-login__step-item {
    text-align: left;
}

.page-login__step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 15px;
    display: inline-block;
    background: var(--secondary-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-login__step-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__step-description {
    font-size: 16px;
    color: var(--text-color-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-login__step-image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example, use width=600 height=450 in HTML */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-login__troubleshooting {
    margin-top: 60px;
    padding: 30px;
    background-color: #fff8e1; /* Light yellow background */
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    text-align: left;
}

.page-login__troubleshooting-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-login__troubleshooting-description {
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-login__troubleshooting-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-login__troubleshooting-description a:hover {
    color: var(--primary-color);
}

/* Security Section */
.page-login__security-section {
    background: var(--secondary-color);
    color: var(--text-color-light);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-login__security-section .page-login__section-title,
.page-login__security-section .page-login__section-intro {
    color: var(--text-color-light);
}

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

.page-login__security-item.page-login__card {
    background: var(--background-dark-card);
    color: var(--text-color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__security-item.page-login__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__security-icon {
    width: 250px; /* Min size 200px */
    height: 187px; /* Maintain aspect ratio for 800x600 */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__security-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__security-description {
    font-size: 16px;
    color: var(--text-color-light);
    line-height: 1.6;
}

.page-login__security-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-login__security-description a:hover {
    color: var(--text-color-light);
}

/* App Download Section */
.page-login__app-download-section {
    background-color: #f9f9f9;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-login__app-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    text-align: left;
}

.page-login__app-text {
    flex: 1;
    max-width: 600px;
}

.page-login__app-text p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.page-login__app-image {
    flex-shrink: 0;
    width: 400px; /* Example, use width=400 height=533 in HTML */
    height: 533px; /* Maintain aspect ratio for 600x800 */
}

.page-login__app-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-login__app-note {
    font-size: 15px;
    color: #666;
    margin-top: 20px;
}

/* FAQ Section */
.page-login__faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  text-align: left;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 10px 10px;
  border-top: 1px solid var(--border-color);
}

.page-login__faq-answer p {
    margin: 0;
    color: var(--text-color-dark);
    font-size: 16px;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__faq-item.active .page-login__faq-question {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
  text-align: left;
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

/* News Section */
.page-login__news-section {
    background-color: #f0f0f0;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-login__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-login__news-item.page-login__card {
    text-align: left;
    padding: 20px;
}

.page-login__news-image {
    width: 100%;
    height: 225px; /* Maintain aspect ratio for 800x450 */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__news-title {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.page-login__news-title a {
    color: inherit;
    text-decoration: none;
}

.page-login__news-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-login__news-excerpt {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-login__news-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

.page-login__news-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 40px;
    }
    .page-login__hero-description {
        font-size: 18px;
    }
    .page-login__section-title {
        font-size: 30px;
    }
    .page-login__section-intro {
        font-size: 16px;
    }
    .page-login__app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__app-image {
        margin-top: 30px;
        width: 300px;
        height: 400px;
    }
    .page-login__app-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-content {
        margin-top: -50px;
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__hero-image img {
        border-radius: 8px;
    }
    .page-login__hero-title {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-login__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-login__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0;
    }

    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__section {
        padding: 40px 0;
    }
    .page-login__section-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    .page-login__section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__steps-grid,
    .page-login__security-grid,
    .page-login__news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-login__benefit-icon,
    .page-login__security-icon {
        width: 200px; /* Min size */
        height: 150px;
    }
    .page-login__benefit-title,
    .page-login__security-title {
        font-size: 20px;
    }
    .page-login__step-number {
        font-size: 40px;
        width: 60px;
        height: 60px;
    }
    .page-login__step-title {
        font-size: 20px;
    }
    .page-login__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__troubleshooting {
        padding: 20px;
    }
    .page-login__troubleshooting-title {
        font-size: 20px;
    }

    .page-login__app-content {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    .page-login__app-image {
        width: 280px;
        height: 373px;
    }
    .page-login__app-text p {
        font-size: 16px;
    }

    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-question h3 {
        font-size: 16px;
    }
    .page-login__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px !important;
    }
    .page-login__news-item.page-login__card {
        padding: 15px;
    }
    .page-login__news-image {
        height: 180px;
    }
    .page-login__news-title {
        font-size: 18px;
    }
    .page-login__news-excerpt {
        font-size: 14px;
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__app-text,
    .page-login__troubleshooting,
    .page-login__hero-cta-buttons,
    .page-login__app-download-section .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__hero-section .page-login__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-login__hero-cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 28px;
    }
    .page-login__hero-description {
        font-size: 15px;
    }
    .page-login__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-login__section-title {
        font-size: 24px;
    }
    .page-login__step-number {
        font-size: 36px;
        width: 50px;
        height: 50px;
    }
    .page-login__app-image {
        width: 250px;
        height: 333px;
    }
    .page-login__faq-question h3 {
        font-size: 15px;
    }
    .page-login__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
}