/* Landing Page Styles - Alpine Theme */

:root {
    --primary-color: #0d1b2a;
    --secondary-color: #4a6274;
    --accent-color: #0097a7;
    --accent-light: #b2ebf2;
    --success-color: #2e7d6f;
    --text-light: #ffffff;
    --text-muted: #b8c8d8;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: #0d1b2a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.landing-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #0a1218 url('img/landingbg.png') center top / cover no-repeat;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(8, 16, 26, 0.55) 0%,
        rgba(10, 20, 32, 0.42) 45%,
        rgba(6, 14, 22, 0.68) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.landing-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Header */
.landing-header {
    margin-bottom: 50px;
    animation: slideInDown 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.landing-logo {
    max-width: min(550px, 75vw);
    height: auto;
    margin-bottom: 0px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2));
    display: block;
}

.landing-subtitle {
    font-size: clamp(16px, 4vw, 24px);
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Area */
.landing-text {
    margin-bottom: 50px;
    animation: fadeIn 0.3s ease-in 0.1s both;
    max-width: 600px;
}

.landing-text .landing-description {
    font-size: clamp(12px, 2vw, 18px);
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.landing-text .landing-disclaimer {
    font-size: clamp(11px, 1.8vw, 13px);
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
.landing-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 80px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 0.3s ease-in 0.2s both;
}

.btn {
    position: relative;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.btn-login {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    min-width: 180px;
    justify-content: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.50);
}

.btn-register {
    background: rgba(0, 151, 167, 0.18);
    color: var(--text-light);
    border: 1px solid rgba(0, 200, 220, 0.40);
    min-width: 180px;
    justify-content: center;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    background: rgba(0, 151, 167, 0.35);
    border-color: rgba(0, 200, 220, 0.65);
}

/* Tips Section */
.landing-tips {
    margin-top: 0px;
}

.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tip-item {
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--secondary-color);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.10);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tip-item:hover .tip-icon {
    transform: scale(1.05);
}

.tip-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 14px;
    background: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.tip-icon svg {
    width: 20px;
    height: 20px;
}

.tip-icon-routes { background: var(--accent-color); }
.tip-icon-stays  { background: var(--success-color); }
.tip-icon-pack   { background: #8e6aa0; }
.tip-icon-budget { background: #5c6bc0; }

.tip-item:nth-child(1) { border-left-color: var(--accent-color); }
.tip-item:nth-child(2) { border-left-color: var(--success-color); }
.tip-item:nth-child(3) { border-left-color: #8e6aa0; }
.tip-item:nth-child(4) { border-left-color: #5c6bc0; }

.tip-item h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 6px;
    font-weight: 600;
}

.tip-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 10;
    padding: 10px 10px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.landing-footer p {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 300;
}

/* Auth Modal */
.auth-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-box {
    position: relative;
    background: #0f1e30;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}

.auth-modal-close:hover {
    color: #ffffff;
}

.auth-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 24px;
}

.auth-message {
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.auth-message-error {
    background: rgba(229, 57, 53, 0.15);
    border: 1px solid rgba(229, 57, 53, 0.35);
    color: #ff8a80;
}

.auth-message-success {
    background: rgba(56, 142, 60, 0.15);
    border: 1px solid rgba(56, 142, 60, 0.35);
    color: #a5d6a7;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.auth-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.auth-field input:focus {
    border-color: rgba(0, 200, 220, 0.55);
    background: rgba(255, 255, 255, 0.09);
}

.auth-register-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Inline switch for the auth modal */
.auth-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-muted);
    user-select: none;
}

.auth-switch-label input[type="checkbox"] {
    display: none;
}

.auth-switch-slider {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: background 0.25s;
    flex-shrink: 0;
}

.auth-switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.auth-switch-label input:checked ~ .auth-switch-slider {
    background: var(--secondary-color, #00bcd4);
}

.auth-switch-label input:checked ~ .auth-switch-slider::after {
    transform: translateX(16px);
}

.auth-submit-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 151, 167, 0.25);
    color: var(--text-light);
    border: 1px solid rgba(0, 200, 220, 0.40);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: rgba(0, 151, 167, 0.42);
    border-color: rgba(0, 200, 220, 0.65);
    transform: translateY(-1px);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-container {
        background-position: 75% bottom;
    }

    .landing-content {
        padding: 20px 15px;
        max-width: 100%;
    }

    .landing-header {
        margin-bottom: 30px;
    }

    .landing-title {
        font-size: 36px;
    }

    .landing-logo {
        max-width: min(400px, 82vw);
    }

    .landing-subtitle {
        font-size: 14px;
    }

    .landing-text {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .landing-text p {
        font-size: 14px;
        line-height: 1.4;
    }

    .landing-buttons {
        gap: 12px;
        margin-bottom: 40px;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 30px;
        font-size: 15px;
    }

    .btn-login,
    .btn-register {
        min-width: 0;
    }

    .tips-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 100%;
        padding: 0 10px;
    }

    .tip-item {
        padding: 20px 12px;
        border-radius: 8px;
    }

    .tip-item h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .tip-item p {
        font-size: 12px;
    }

    .tip-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 10px;
    }

    .tip-icon svg {
        width: 17px;
        height: 17px;
    }

    .landing-footer {
        padding: 20px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    .landing-content {
        padding: 15px 12px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .landing-header {
        margin-bottom: 20px;
    }

    .landing-title {
        font-size: 28px;
    }

    .landing-logo {
        max-width: min(320px, 88vw);
    }

    .landing-subtitle {
        font-size: 12px;
    }

    .landing-text {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .landing-text p {
        font-size: 13px;
        line-height: 1.35;
    }

    .landing-buttons {
        flex-direction: column;
        margin-bottom: 30px;
        gap: 10px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
        max-width: 100%;
        width: 100%;
    }

    .tips-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }

    .tip-item {
        padding: 16px 12px;
        border-radius: 6px;
    }

    .tip-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .tip-icon svg {
        width: 16px;
        height: 16px;
    }

    .tip-item h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .tip-item p {
        font-size: 11px;
        line-height: 1.3;
    }

    .tip-icon {
        font-size: 28px;
        margin-bottom: 6px;
    }
}
