/* ============================================================
 *  Project: IoT Operations Suite
 *  File: landing.css
 *  Description: Landing page styles
 *
 *  © 2025 Softmatik. All rights reserved.
 *  Developed by Softmatik – Scalable IoT & Workflow Solutions
 *
 *  This file is part of the Softmatik IoT Suite.
 *  Unauthorized copying, distribution, or modification
 *  of this file, via any medium, is strictly prohibited.
 * ============================================================ */

/* Import Google Fonts for elegant typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Landing Page Styles - Glassmorphism Design */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(5%, 5%) rotate(5deg);
    }

    66% {
        transform: translate(-5%, 5%) rotate(-5deg);
    }
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.lead {
    color: #2d3436;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #1a1a2e;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.card-text {
    color: #2d3436;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: rgba(52, 152, 219, 0.8);
}

.btn-primary:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-warning {
    background: rgba(243, 156, 18, 0.8);
}

.btn-warning:hover {
    background: rgba(211, 136, 16, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-success {
    background: rgba(39, 174, 96, 0.8);
}

.btn-success:hover {
    background: rgba(34, 153, 84, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-info {
    background: rgba(52, 152, 219, 0.8);
}

.btn-info:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Welcome header for authenticated users */
.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.welcome-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logout-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(192, 57, 43, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Login wrapper */
.login-wrapper {
    max-width: 500px;
    margin: 4rem auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h1 {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    line-height: 1.3;
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    font-weight: 500;
    letter-spacing: 0.2px;
    font-family: 'Inter', sans-serif;
}

/* Login card */
.login-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    padding: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card h2 {
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
    font-family: 'Poppins', sans-serif;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #1a1a2e;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.8);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn-login {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(92, 116, 224, 1) 0%, rgba(108, 65, 152, 1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* NFC access section */
.nfc-access {
    margin-top: 2rem;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0 1.5rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.divider span {
    padding: 0 1rem;
    color: #2d3436;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.nfc-text {
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-nfc {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    background: rgba(39, 174, 96, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-nfc:hover {
    background: rgba(34, 153, 84, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.nfc-hint {
    color: #2d3436;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Info footer */
.info-footer {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-footer p {
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.info-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-footer li {
    color: #2d3436;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    border-left: 4px solid rgba(102, 126, 234, 0.6);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.info-footer li:last-child {
    margin-bottom: 0;
}

/* Alert messages */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    font-weight: 600;
}

.alert-success {
    background: rgba(39, 174, 96, 0.3);
    color: #1a5331;
}

.alert-error {
    background: rgba(231, 76, 60, 0.3);
    color: #8b1e1e;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.3);
    color: #6b4a0f;
}

.alert-info {
    background: rgba(52, 152, 219, 0.3);
    color: #1a4d6b;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .login-wrapper {
        margin: 2rem auto;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .login-card {
        padding: 1.5rem;
    }

    .welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .welcome-header h1 {
        font-size: 1.5rem;
    }
}