/* Custom styles extracted from remote site */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Sarabun', sans-serif;
}

#app {
    width: 100%;
    height: 100%;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark Green/Black Gradient (Matrix/Cyber Style) */
    background-image: linear-gradient(135deg, #020b08, #001a11, #002b1c);
    z-index: 0;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    padding: 1rem;
}

.header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-inner img {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

/* Replicate Ripple/Pulse effect if static */
.logo-container {
    position: relative;
    display: inline-block;
}

.main-title {
    color: #ffffff;
    /* White Text */
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
}

.title-line {
    font-size: 1.5rem;
    font-weight: bold;
}

.title-subtitle {
    font-size: 1rem;
    color: #ffffff;
    /* White subtitle */
}

.org-badge {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    border: 1px solid #10b981;
    /* Green Border */
}

/* Card Styles - Dark Mode */
.login-card.p-card {
    background: rgba(20, 20, 20, 0.85);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(220, 20, 60, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    border: 1px solid rgba(220, 20, 60, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    /* Smooth transition for hover */
}

/* Hover Effect: Light Background & Dark Text */
.login-card.p-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px 0 rgba(74, 222, 128, 0.4);
    border-color: #fff;
    transform: translateY(-2px);
}

.login-card.p-card:hover .card-title,
.login-card.p-card:hover .card-subtitle,
.login-card.p-card:hover p {
    color: #1f2937;
    /* Dark Gray / Black Text */
    text-shadow: none;
}

.login-card.p-card:hover .title-divider {
    color: #10b981;
    /* Green divider on light bg */
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.25rem;
    color: #ffffff;
    /* White text */
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

.title-divider {
    color: #ffffff;
    margin: 0.5rem 0;
}

.card-subtitle {
    color: #ffffff;
    /* White text */
    font-size: 0.9rem;
}


/* Button Styles */
.provider-button {
    width: 100%;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.provider-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #10b981;
}

.provider-button-inner {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.provider-logo-full {
    height: 70px;
    width: auto;
}

.page-footer {
    margin-top: 2rem;
    text-align: center;
    color: #ffffff;
    /* White Text */
    font-size: 0.8rem;
}

.copyright {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    /* White Text */
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #34d399;
    /* Green hover */
    text-shadow: 0 0 5px #10b981;
}

.separator {
    margin: 0 0.5rem;
    color: #ffffff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #059669;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
    line-height: 1;
}

.close-btn:hover {
    color: #4b5563;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-body h3 {
    color: #065f46;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

.modal-btn-close {
    background: #e5e7eb;
    color: #374151;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.modal-btn-close:hover {
    background: #d1d5db;
}