/* Landing Page Styles - Glass Morphism Theme */

:root {
    --primary-color: #2d3436;
    --secondary-color: #636e72;
    --accent-color: #0984e3;
    --accent-light: #74b9ff;
    --success-color: #00b894;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

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

html, body {
    height: 100%;
    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;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Animated Background Elements */
.landing-container::before,
.landing-container::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.landing-container::before {
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.landing-container::after {
    bottom: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 900"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%25" style="stop-color:rgba(62,68,43,0.1);stop-opacity:1" /><stop offset="100%25" style="stop-color:rgba(249,166,32,0.1);stop-opacity:1" /></linearGradient></defs><path d="M 0 400 Q 360 300 720 400 T 1440 400 L 1440 900 L 0 900 Z" fill="url(%23grad)" opacity="0.3"/><path d="M 0 500 Q 360 400 720 500 T 1440 500 L 1440 900 L 0 900 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom;
    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.8s 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-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 1s ease-in 0.3s both;
    max-width: 600px;
}

.landing-text p {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@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 1s ease-in 0.6s 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.95);
    color: #2d3436;
    min-width: 180px;
    justify-content: center;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.btn-register {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
    min-width: 180px;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

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

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

.tip-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tip-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: inline-block;
}

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

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

/* Footer */
.landing-footer {
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    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: 14px;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-content {
        padding: 20px 15px;
        max-width: 100%;
    }

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

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

    .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: 15px;
        margin-bottom: 6px;
    }

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

    .tip-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

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

@media (max-width: 480px) {
    .landing-container::before,
    .landing-container::after {
        width: 200px;
        height: 200px;
    }

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

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

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

    .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-item h3 {
        font-size: 14px;
        margin-bottom: 4px;
    }

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

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