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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #333;
        }

        .container {
            display: flex;
            width: 100%;
            max-width: 950px;
            gap: 30px;
            align-items: stretch; /* Hace que ambos cards tengan la misma altura */
        }

        .card {
            flex: 1;
            background: #f8f9fa;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            padding: 35px 30px;
            border: 1px solid #e9ecef;
            display: flex;
            flex-direction: column;
            min-height: 450px; /* Altura mínima unificada */
        }

        .card-header {
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 20px;
            margin-bottom: 25px;
            text-align: center;
        }

        .card-header h2 {
            font-size: 22px;
            color: #2c3e50;
            font-weight: 500;
            margin-bottom: 8px;
        }

        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* Estilos específicos para el login */
        .login-form {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .input-group {
            position: relative;
            margin-bottom: 30px;
        }

        .input-group input {
            width: 100%;
            padding: 12px 0;
            font-size: 16px;
            border: none;
            border-bottom: 1px solid #adb5bd;
            outline: none;
            background: transparent;
            transition: 0.3s;
            color: #495057;
        }

        .input-group label {
            position: absolute;
            top: 12px;
            left: 0;
            font-size: 16px;
            color: #6c757d;
            pointer-events: none;
            transition: 0.3s;
        }

        .input-group input:focus ~ label,
        .input-group input:valid ~ label {
            top: -18px;
            font-size: 12px;
            color: #495057;
            font-weight: 500;
        }

        .input-group input:focus {
            border-bottom: 2px solid #495057;
        }

        .login-btn {
            width: 100%;
            background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
            color: #f8f9fa;
            border: none;
            padding: 14px;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
            transition: 0.3s;
            font-weight: 500;
            letter-spacing: 0.5px;
            margin-top: auto;
        }

        .login-btn:hover {
            background: linear-gradient(135deg, #343a40 0%, #495057 100%);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        }

        .links {
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
        }

        .links a {
            color: #6c757d;
            text-decoration: none;
            font-size: 14px;
            transition: 0.3s;
        }

        .links a:hover {
            color: #495057;
            text-decoration: underline;
        }

        /* Estilos específicos para el card de datos */
        .serial {
            font-size: 13px;
            color: #6c757d;
            font-family: monospace;
            letter-spacing: 0.5px;
        }

        .temperature {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: #e9ecef;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .temp-value {
            font-size: 52px;
            font-weight: 300;
            color: #2c3e50;
            margin-bottom: 5px;
        }

        .temp-unit {
            font-size: 20px;
            color: #6c757d;
        }

        .chart-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .chart-title {
            font-size: 15px;
            color: #495057;
            margin-bottom: 15px;
            font-weight: 500;
        }

        .chart {
            height: 120px;
            display: flex;
            align-items: flex-end;
            gap: 8px;
            margin-bottom: 10px;
        }

        .chart-bar {
            flex: 1;
            background: linear-gradient(to top, #495057, #6c757d);
            border-radius: 4px 4px 0 0;
            position: relative;
            transition: height 0.5s;
            min-height: 10px;
        }

        .chart-labels {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #6c757d;
            padding: 0 5px;
        }

        .status-info {
            margin-top: 20px;
            padding: 15px;
            background: #e9ecef;
            border-radius: 6px;
            font-size: 14px;
            color: #495057;
        }

        .status-info span {
            font-weight: 500;
            color: #2c3e50;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
                gap: 20px;
            }
            
            .card {
                min-height: 400px;
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .card {
                padding: 25px 20px;
                min-height: 380px;
            }
            
            .links {
                flex-direction: column;
                gap: 10px;
            }
            
            .temp-value {
                font-size: 44px;
            }
            
            .card-header h2 {
                font-size: 20px;
            }
        }
