/* CSS Variables & Global Styles */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #f0fdfa;
    --accent-color: #14b8a6;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    -webkit-font-smoothing: antialiased;
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
    display: block;
    line-height: 1.2;
}

.brand-title span {
    color: var(--primary-color);
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.gateway-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    background-color: var(--primary-light);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    border: 1px solid #ccfbf1;
}

.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.portal-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.portal-link:hover {
    color: var(--primary-color);
}

.portal-link i {
    margin-right: 0.375rem;
    color: #94a3b8;
}

/* Main Content Styles */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.hero-container {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: repeat(12, 1fr);
    }
    .hero-left {
        grid-column: span 7;
        text-align: left;
    }
    .hero-right {
        grid-column: span 5;
    }
}

.hero-left {
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid #ccfbf1;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-title span {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: #5eead4;
    text-underline-offset: 8px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 2rem 0;
    }
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--primary-color);
}

/* Login Card Styles */
.login-card {
    background-color: var(--white);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f1f5f9;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.375rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .card-header {
        text-align: left;
    }
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #94a3b8;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.remember-me input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.card-footer-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.card-footer-note p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Footer Styles */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}