/* styles.css - Captive Portal Vid de Luna */

:root {
    --bg-warm: #f6f4ec;
    --accent-sage: #6d705e;
    --accent-dark: #555849;
    --accent-light: #e6e3d5;
    --text-charcoal: #3c3d37;
    --text-muted: #797c70;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(109, 112, 94, 0.15);
    --shadow-soft: 0 12px 40px rgba(109, 112, 94, 0.1);
    --shadow-btn: 0 8px 24px rgba(109, 112, 94, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-warm);
    background-image: url('images/bg-wedding-137.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Background Overlay for Readability */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(246, 244, 236, 0.85) 0%, 
        rgba(246, 244, 236, 0.70) 50%, 
        rgba(109, 112, 94, 0.25) 100%
    );
    z-index: 1;
}

/* Container */
.portal-container {
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card design with soft glassmorphism */
.portal-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Styles */
.logo-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(109, 112, 94, 0.1));
    transition: var(--transition);
}

.brand-logo:hover {
    transform: scale(1.05);
}

/* Header Typography */
.portal-header {
    margin-bottom: 1rem;
}

.subtitle-pre {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.brand-title {
    font-family: 'Marcellus', serif;
    font-size: 2.3rem;
    font-weight: 400;
    color: var(--accent-sage);
    letter-spacing: 1px;
    line-height: 1.2;
}

.subtitle-cursive {
    font-family: 'Homemade Apple', cursive;
    font-size: 1.15rem;
    color: var(--accent-sage);
    margin-top: 0.4rem;
    opacity: 0.9;
}

/* Decorative Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 1px;
    background-color: rgba(109, 112, 94, 0.2);
    margin: 1.25rem 0;
    position: relative;
}

.divider-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-sage);
    border-radius: 50%;
    position: absolute;
}

/* Body Content */
.portal-body {
    width: 100%;
    margin-bottom: 1.5rem;
}

.portal-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-charcoal);
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.portal-submessage {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 0.75rem;
}

/* Action Button */
.action-wrapper {
    width: 100%;
}

.btn-connect {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 56px;
    background-color: var(--accent-sage);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    box-shadow: var(--shadow-btn);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-connect:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(109, 112, 94, 0.35);
}

.btn-connect:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(109, 112, 94, 0.2);
    background-color: var(--accent-dark);
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.btn-connect:hover .btn-icon {
    transform: translateX(4px);
}

/* Footer Section */
.portal-footer {
    width: 100%;
    border-top: 1px solid rgba(109, 112, 94, 0.08);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.footer-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-subtext {
    font-family: 'Homemade Apple', cursive;
    font-size: 0.85rem;
    color: var(--accent-sage);
    margin-top: 0.4rem;
    opacity: 0.8;
}

/* --- Mobile Responsiveness Adjustments --- */

/* For smaller smartphones (like iPhone SE, older Androids) */
@media (max-width: 375px) {
    .portal-container {
        padding: 1rem;
    }

    .portal-card {
        padding: 1.75rem 1.25rem;
        border-radius: 24px;
    }

    .brand-logo {
        width: 85px;
    }

    .brand-title {
        font-size: 1.9rem;
    }

    .subtitle-cursive {
        font-size: 1rem;
    }

    .divider {
        margin: 1rem 0;
    }

    .portal-message {
        font-size: 0.85rem;
    }

    .portal-submessage {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .btn-connect {
        height: 50px;
        font-size: 0.9rem;
    }
}

/* For screens in landscape or extremely short viewports */
@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding: 1rem 0;
    }

    .portal-card {
        padding: 1.5rem;
    }

    .logo-wrapper {
        margin-bottom: 0.75rem;
    }

    .brand-logo {
        width: 70px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .subtitle-cursive {
        font-size: 0.95rem;
    }

    .divider {
        margin: 0.75rem 0;
    }

    .portal-submessage {
        margin-bottom: 1.25rem;
    }

    .btn-connect {
        height: 48px;
    }
}
